cfmgrv4 init...4

This commit is contained in:
최준흠 2024-10-28 13:10:00 +09:00
parent f78bced1c5
commit 24c4d774ca

View File

@ -78,7 +78,9 @@ class AuditLogService extends CloudflareService
log_message("notice", "\n----------Account {$account_entity->getTitle()}의 AuditLog 처리 시작-----------");
try {
$response = $this->getMySocket()->get("accounts/{$account_entity->getPK()}/audit_logs?since=" . date("Y-m-d") . "T00:00:00");
$endpoint = sprintf("accounts/%s/audit_logs?since=%s", $account_entity->getPK(), date("Y-m-d") . "T00:00:00");
log_message("debug", "Auditlog Endpoint: " . $endpoint);
$response = $this->getMySocket()->get($endpoint);
$body = json_decode($response->getBody());
foreach ($body->result as $result) {
if (isset($result->action->result) && $result->action->result && isset($result->newValueJson->zone_id)) {