|
@@ -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'];
|