Skip to content

Commit

Permalink
* Save original domain of system.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjianhua committed Dec 9, 2022
1 parent 763fd1c commit 7724b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/module/system/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ public function saveDomainSettings()
}

$expiredDomain = $this->setting->getItem('owner=system&module=common&section=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));

Expand Down

0 comments on commit 7724b45

Please sign in to comment.