From 070280766630d5f2f7866951b45e9dbf3a36295f 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:20:23 +0900 Subject: [PATCH] cfmgrv4 init...4 --- app/Services/Cloudflare/ZoneService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Services/Cloudflare/ZoneService.php b/app/Services/Cloudflare/ZoneService.php index 4d72ad9..b6e4227 100644 --- a/app/Services/Cloudflare/ZoneService.php +++ b/app/Services/Cloudflare/ZoneService.php @@ -160,8 +160,10 @@ class ZoneService extends CloudflareService } public function expire(AccountEntity $parent_entity, ZoneEntity $entity): ZoneEntity { + $endpoint = "accounts/{$parent_entity->getPK()}/registrar/domains/{$entity->getTitle()}"; + log_message("debug", $endpoint); $this->setParentEntity($parent_entity); - $response = $this->getMySocket()->get("accounts/{$parent_entity->getPK()}/registrar/domains/{$entity->getTitle()}"); + $response = $this->getMySocket()->get($endpoint); $body = json_decode($response->getBody()); $formDatas = ['expire_date', $body->result->expires_at]; // log_message("debug", var_export($formDatas, true));