Explorar o código

getpetuserwork

DengTao %!s(int64=8) %!d(string=hai) anos
pai
achega
38250a746a
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      www/protected/commands/getPetUserWorkCommand.php

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

@@ -27,11 +27,13 @@ class GetPetUserWorkCommand extends CConsoleCommand{
             $index = 1;
         }
         $start_time = time();
-        var_dump($start_time);
+//        var_dump($start_time);
         $collection->remove(array('id' => $index));
         while($index) {
+            var_dump($index);
             $res = CommonFn::simple_http('http://pet.appcute.im/api/user/get?id=' . $index++);
             $d = json_decode($res, true);
+            var_dump($d);
             $end_time = time();
             if ($d['error'] == 10000) {
                 $data = $d['data'];