* [apiv2] Web root cannot be changed by api request.

This commit is contained in:
朱金勇
2025-10-14 15:28:33 +08:00
committed by Gitfox
parent aff8e6d986
commit 3ce79e30ce
+5 -1
View File
@@ -402,7 +402,11 @@ class commonModel extends model
$this->config->system = isset($config['system']) ? $config['system'] : array();
$this->config->personal = isset($config[$account]) ? $config[$account] : array();
$this->commonTao->updateDBWebRoot($this->config->system);
/* Web root cannot be changed by api request. */
if(!$this->app->apiVersion)
{
$this->commonTao->updateDBWebRoot($this->config->system);
}
/* Override the items defined in config/config.php and config/my.php. */
if(isset($this->config->system->common)) $this->app->mergeConfig($this->config->system->common, 'common');