cfmgrv4 init...4

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

View File

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