From f34699cfef040a2b16fa26cf24a14e5a6a9556d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Thu, 17 Oct 2024 19:08:10 +0900 Subject: [PATCH] cfmgrv4 init...3 --- app/Libraries/Cloudflare/Zone.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Libraries/Cloudflare/Zone.php b/app/Libraries/Cloudflare/Zone.php index e654d3a..f4312e1 100644 --- a/app/Libraries/Cloudflare/Zone.php +++ b/app/Libraries/Cloudflare/Zone.php @@ -78,7 +78,6 @@ class Zone extends Cloudflare } private function getCFSettingSSL(string $uid, array $formDatas = []): array { - log_message("debug", "TEST"); $cf = $this->getMySocket()->get('zones/' . $uid . '/settings/ssl'); $cf = json_decode($cf->getBody()); if (!$cf->success) { @@ -108,7 +107,7 @@ class Zone extends Cloudflare private function setCFSettingSSL(string $uid, string $field, string $value): string { $datas = ['value' => $value]; - $cf = $this->getMySocket()->patch('zones/' . $uid . '/settings/ssl' . $field, $datas); + $cf = $this->getMySocket()->patch('zones/' . $uid . '/settings/' . $field, $datas); $cf = json_decode($cf->getBody()); if (!$cf->success || $cf->result->id !== $field) { $message = "Zone:" . __FUNCTION__ . "에서 실패:\nrequest:" . var_export($datas, true) . "\nresponse:" . var_export($cf, true);