From 23aed573d31aa9ee5d3a98e940ed8d75df6fee29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Mon, 18 Nov 2024 14:27:30 +0900 Subject: [PATCH] cfmgrv4 init...4 --- app/Services/Cloudflare/ZoneService.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Services/Cloudflare/ZoneService.php b/app/Services/Cloudflare/ZoneService.php index b436c13..8be4d2a 100644 --- a/app/Services/Cloudflare/ZoneService.php +++ b/app/Services/Cloudflare/ZoneService.php @@ -33,7 +33,7 @@ class ZoneService extends CloudflareService private function setParentEntity(AccountEntity $parent_entity): void { $this->_parent_entity = $parent_entity; - $auth_entity = $this->getAuthModel()->getEntityByPK(uid: $this->getParentEntity()->getParent()); + $auth_entity = $this->getAuthModel()->getEntityByPK($this->getParentEntity()->getParent()); if ($auth_entity === null) { throw new \Exception("해당 계정정보를 찾을수 없습니다."); } @@ -160,10 +160,8 @@ class ZoneService extends CloudflareService } public function expire(AccountEntity $parent_entity, ZoneEntity $entity): ZoneEntity { - $endpoint = "accounts/{$entity->getParent()}/registrar/domains/{$entity->getTitle()}"; - log_message("debug", $endpoint); $this->setParentEntity($parent_entity); - $response = $this->getMySocket()->get($endpoint); + $response = $this->getMySocket()->get("accounts/{$entity->getParent()}/registrar/domains/{$entity->getTitle()}"); $body = json_decode($response->getBody()); $formDatas = ['expire_date', $body->result->expires_at]; // log_message("debug", var_export($formDatas, true));