diff --git a/frontend/module/system/model.php b/frontend/module/system/model.php index 66cddea3..e4400842 100644 --- a/frontend/module/system/model.php +++ b/frontend/module/system/model.php @@ -638,7 +638,7 @@ public function saveDomainSettings() } $expiredDomain = $this->setting->getItem('owner=system&module=common§ion=domain&key=expiredDomain'); - $expiredDomain = empty($expiredDomain ) ? array() : json_decode($expiredDomain, true); + $expiredDomain = empty($expiredDomain ) ? array(getenv('APP_DOMAIN')) : json_decode($expiredDomain, true); $expiredDomain[] = zget($settings, 'customDomain', ''); $this->setting->setItem('system.common.domain.expiredDomain', json_encode($expiredDomain));