From 3ce79e30ce625badb4bf53728cb3cc1eb4e8cb38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=87=91=E5=8B=87?= Date: Tue, 14 Oct 2025 15:28:33 +0800 Subject: [PATCH] * [apiv2] Web root cannot be changed by api request. --- module/common/model.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index d5619f4c28..b9f8b4c613 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -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');