Skip to content

Commit 7724b45

Browse files
author
wangjianhua
committed
* Save original domain of system.
1 parent 763fd1c commit 7724b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/module/system/model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ public function saveDomainSettings()
638638
}
639639

640640
$expiredDomain = $this->setting->getItem('owner=system&module=common&section=domain&key=expiredDomain');
641-
$expiredDomain = empty($expiredDomain ) ? array() : json_decode($expiredDomain, true);
641+
$expiredDomain = empty($expiredDomain ) ? array(getenv('APP_DOMAIN')) : json_decode($expiredDomain, true);
642642
$expiredDomain[] = zget($settings, 'customDomain', '');
643643
$this->setting->setItem('system.common.domain.expiredDomain', json_encode($expiredDomain));
644644

0 commit comments

Comments
 (0)