From ac3313e1c715bd2afbe6163fe3ba4443b25a450b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Mon, 28 Oct 2024 09:42:20 +0900 Subject: [PATCH] cfmgrv4 init...4 --- app/Config/Routes.php | 2 +- app/Controllers/CLI/Cloudflare.php | 2 +- app/Services/Cloudflare/AuditLogService.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 9ab0788..faf9aa2 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -90,7 +90,7 @@ $routes->group('admin/cloudflare', ['namespace' => 'App\Controllers\Admin\Cloudf $routes->group('auditlog', function ($routes) { $routes->get('/', 'AuditLogController::index'); $routes->get('view/(:alphanum)', 'AuditLogController::view/$1'); - $routes->get('reload/(:num)', 'AuditLogController::reload/$1'); + $routes->get('reload/(:alphanum)', 'AuditLogController::reload/$1'); $routes->get('download/(:alphanum)', 'AuditLogController::download/$1'); }); $routes->group('zone', function ($routes) { diff --git a/app/Controllers/CLI/Cloudflare.php b/app/Controllers/CLI/Cloudflare.php index f0a3f9f..c4c87ab 100644 --- a/app/Controllers/CLI/Cloudflare.php +++ b/app/Controllers/CLI/Cloudflare.php @@ -87,7 +87,7 @@ class Cloudflare extends BaseController $account_entitys = $account->reload($auth_entity); $auditlog = new AuditLogService(); foreach ($account_entitys as $account_entity) { - $auditlog->auditlog($account_entity); + $auditlog->reload($account_entity); } } log_message("notice", "AuditLogs 작업을 완료하였습니다."); diff --git a/app/Services/Cloudflare/AuditLogService.php b/app/Services/Cloudflare/AuditLogService.php index ffb42ee..264ea2d 100644 --- a/app/Services/Cloudflare/AuditLogService.php +++ b/app/Services/Cloudflare/AuditLogService.php @@ -64,7 +64,7 @@ class AuditLogService extends CloudflareService // $firewall_service->reload($zone_entity); log_message("debug", "AuditLog Process의 {$zone_entity->getTitle()} Sync및 Record,Firewall Reload 처리작업"); } - public function auditlog(AccountEntity $account_entity): void + public function reload(AccountEntity $account_entity): void { //Socket인증정보 정의 $auth_entity = $this->getAuthModel()->getEntityByPK($account_entity->getParent());