cfmgrv4 init...3

This commit is contained in:
최준흠 2024-10-17 19:09:04 +09:00
parent f34699cfef
commit fffbfd54fa

View File

@ -107,7 +107,7 @@ class Zone extends Cloudflare
private function setCFSettingSSL(string $uid, string $field, string $value): string private function setCFSettingSSL(string $uid, string $field, string $value): string
{ {
$datas = ['value' => $value]; $datas = ['value' => $value];
$cf = $this->getMySocket()->patch('zones/' . $uid . '/settings/' . $field, $datas); $cf = $this->getMySocket()->patch('zones/' . $uid . '/settings/ssl', $datas);
$cf = json_decode($cf->getBody()); $cf = json_decode($cf->getBody());
if (!$cf->success || $cf->result->id !== $field) { if (!$cf->success || $cf->result->id !== $field) {
$message = "Zone:" . __FUNCTION__ . "에서 실패:\nrequest:" . var_export($datas, true) . "\nresponse:" . var_export($cf, true); $message = "Zone:" . __FUNCTION__ . "에서 실패:\nrequest:" . var_export($datas, true) . "\nresponse:" . var_export($cf, true);