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

+ 4 - 0
www/protected/commands/GetPetWorkCommand.php

@@ -35,6 +35,7 @@ class GetPetWorkCommand extends CConsoleCommand
                         } else {
                             $dealPet = new DealPet();
                         }
+
                         $dealPet->_id = new MongoId($tmp['id']);
                         $dealPet->is_one_pay = 0;
                         $dealPet->name = $tmp['name'];
@@ -42,7 +43,10 @@ class GetPetWorkCommand extends CConsoleCommand
                         $dealPet->price = $tmp['price'];
                         foreach ($tmp['pics'] as $key => $v) {
                             $dealPet->pics[$key] = $v;
+                            var_dump($key);
                         }
+                        var_dump($dealPet->pics);
+                        exit;
                         $dealPet->root_parent = new MongoId($tmp['root_praent']);
                         $dealPet->kennel = new MongoId($tmp['kennel']);
                         $dealPet->pet_type = new MongoId($tmp['pet_type']);