DengTao 8 жил өмнө
parent
commit
691875d3c4

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

@@ -33,7 +33,8 @@ class GetKennelDetailWorkCommand extends CConsoleCommand {
             '21770', '24730', '22868', '18966', '26246', '26449', '25288', '1850', '2872', '21648', '6740', '26501', '16656', '23552', '26659', '16823', '22362', '23444',
             '26565', '24916', '1774', '25263', '23275', '26494', '26306', '26746', '26111', '26665', '26298', '26431', '24395', '19549'
         );
-
+        $petTypesId = array();
+        $petTypes = array();
         foreach ($ids as $id) {
             var_dump($id);
             $url = "http://pet.appcute.im/api/user/get?id=" . $id;
@@ -72,8 +73,7 @@ class GetKennelDetailWorkCommand extends CConsoleCommand {
 
                 //获取商家宠物 信息
 
-                $petTypesId = array();
-                $petTypes = array();
+
                 if ($res_pets['error'] == 10000) {
                     $tmps = $res_pets['data']['values'];
                     foreach ($tmps as $key=> $tmp) {