cfmgrv4 init...2

This commit is contained in:
최준흠 2024-10-12 09:42:17 +09:00
parent 4b914ccb21
commit a17b53d010

View File

@ -48,7 +48,7 @@ abstract class Cloudflare extends CommonLibrary
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 = [
'page' => $page,
@ -85,7 +85,7 @@ abstract class Cloudflare extends CommonLibrary
usleep(100000); // 0.1초 대기
$cf = $this->reload_page($uri, $i, $per_page);
$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;
}