cfmgrv4 init...3
This commit is contained in:
parent
4e4c53bee0
commit
e1667ef5ae
@ -70,10 +70,12 @@ abstract class Cloudflare
|
||||
usleep(100000); // 0.1초 대기
|
||||
$response = $this->reload_page($uri, $i, $per_page);
|
||||
$body = json_decode($response->getBody());
|
||||
if (!is_object($body->result) || get_class($body->result) !== 'stdClass') {
|
||||
log_message("error", "body->result is not a stdClass:\n" . var_export($body->result, true) . "\n");
|
||||
} else {
|
||||
$results = array_merge($results, $body->result);
|
||||
foreach ($body->result as $result) {
|
||||
if (!is_object($result) || get_class($result) !== 'stdClass') {
|
||||
log_message("error", "Cloudflare: result is not a stdClass:\n" . var_export($result, true) . "\n");
|
||||
} else {
|
||||
array_push($results, $body->result);
|
||||
}
|
||||
}
|
||||
log_message("notice", "현재: page[{$i}/{$total_page}] , result수[" . count($results) . "]");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user