From 7724b45f632e08decfcb95ca1ea9a1c26685be37 Mon Sep 17 00:00:00 2001 From: wangjianhua Date: Fri, 9 Dec 2022 16:13:51 +0800 Subject: [PATCH] * Save original domain of system. --- frontend/module/system/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));