* Adjust cne config get.

This commit is contained in:
caoyanyi
2023-10-19 11:13:49 +08:00
parent 1ef5a17d00
commit ed3b60a102
+3 -1
View File
@@ -335,7 +335,9 @@ class cneModel extends model
$customDomain = $this->loadModel('setting')->getItem('owner=system&module=common&section=domain&key=customDomain');
if($customDomain) return $customDomain;
return getenv('APP_DOMAIN');
if(getenv('APP_DOMAIN')) return getenv('APP_DOMAIN');
if(!empty($this->config->CNE->app->domain)) return $this->config->CNE->app->domain;
return '';
}
/**