cfmgrv4 init...4

This commit is contained in:
최준흠 2024-11-18 11:41:42 +09:00
parent 574e1a602c
commit 1702158376

View File

@ -163,9 +163,11 @@ class ZoneService extends CloudflareService
{ {
$whois = Factory::get()->createWhois(); $whois = Factory::get()->createWhois();
$info = $whois->loadDomainInfo($entity->getTitle()); $info = $whois->loadDomainInfo($entity->getTitle());
$expire_date = date("Y-m-d", $info->expirationDate); if ($info) {
$this->getModel()->modify($entity, ['expire_date' => $expire_date]); $expire_date = date("Y-m-d", $info->expirationDate);
log_message('debug', __FUNCTION__ . " : {$entity->getTitle()} => {$expire_date}"); $this->getModel()->modify($entity, ['expire_date' => $expire_date]);
log_message('debug', __FUNCTION__ . " : {$entity->getTitle()} => {$expire_date}");
}
} }
//Reload //Reload