cfmgrv4 init...2
This commit is contained in:
parent
4b914ccb21
commit
a17b53d010
@ -48,7 +48,7 @@ abstract class Cloudflare extends CommonLibrary
|
|||||||
return $this->_accountModel;
|
return $this->_accountModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function reload_page(string $uri, int $page, int $per_page = 20): mixed
|
private function reload_page(string $uri, int $page, int $per_page = 50): mixed
|
||||||
{
|
{
|
||||||
$query = [
|
$query = [
|
||||||
'page' => $page,
|
'page' => $page,
|
||||||
@ -85,7 +85,7 @@ abstract class Cloudflare extends CommonLibrary
|
|||||||
usleep(100000); // 0.1초 대기
|
usleep(100000); // 0.1초 대기
|
||||||
$cf = $this->reload_page($uri, $i, $per_page);
|
$cf = $this->reload_page($uri, $i, $per_page);
|
||||||
$results = array_merge($results, $cf->result);
|
$results = array_merge($results, $cf->result);
|
||||||
log_message("debug", "현재: page[{$i}/{$total_page}] , result수[" . count($results) . "]");
|
log_message("notice", "현재: page[{$i}/{$total_page}] , result수[" . count($results) . "]");
|
||||||
}
|
}
|
||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user