DengTao 8 years ago
parent
commit
4c95423fa0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      www/protected/commands/GetKennelDetailWorkCommand.php

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

@@ -94,10 +94,13 @@ class GetKennelDetailWorkCommand extends CConsoleCommand {
                             $pet_type->pic = $tmp['cat']['pic'];
                             $pet_type->level = 2;
                             $pet_type->save();
+                            var_dump($tmp['cat']['id']);
                             $petTypes[$tmp['cat']['id']] = (string)$pet_type->_id;
                         } else {
                             $pet_type = PetTypes::model()->get(new MongoId($petTypes[$tmp['cat']['id']]));
                         }
+                        var_dump($petTypesId);
+                        var_dump($petTypes);
                         $dealPet->pet_type = new MongoId($pet_type->_id);
 
                         $dealPet->name = $tmp['name'];