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));