Browse Source

getpetuserwork

DengTao 8 years ago
parent
commit
38250a746a
1 changed files with 3 additions and 1 deletions
  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;
             $index = 1;
         }
         }
         $start_time = time();
         $start_time = time();
-        var_dump($start_time);
+//        var_dump($start_time);
         $collection->remove(array('id' => $index));
         $collection->remove(array('id' => $index));
         while($index) {
         while($index) {
+            var_dump($index);
             $res = CommonFn::simple_http('http://pet.appcute.im/api/user/get?id=' . $index++);
             $res = CommonFn::simple_http('http://pet.appcute.im/api/user/get?id=' . $index++);
             $d = json_decode($res, true);
             $d = json_decode($res, true);
+            var_dump($d);
             $end_time = time();
             $end_time = time();
             if ($d['error'] == 10000) {
             if ($d['error'] == 10000) {
                 $data = $d['data'];
                 $data = $d['data'];