DengTao 8 سال پیش
والد
کامیت
dd39aa0dcb
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      www/protected/commands/GetKennelDetailWorkCommand.php

+ 3 - 1
www/protected/commands/GetKennelDetailWorkCommand.php

@@ -82,8 +82,10 @@ class GetKennelDetailWorkCommand extends CConsoleCommand {
                         $dealPet = new DealPet();
 
                         if(in_array($tmp['cat']['id'],$petTypesId)) {
-                            exit;
+                            var_dump($petTypes[$tmp['cat']['id']]);
                             $pet_type = PetTypes::model()->get(new MongoId($petTypes[$tmp['cat']['id']]));
+                            var_dump($pet_type);
+                            exit;
                         } else {
                             $petTypesId[] = $tmp['cat']['id'];
                             $pet_type = new PetTypes();