From 79c3c9ec53e5564fa6f2d96d7bc96fecde590cf8 Mon Sep 17 00:00:00 2001 From: muzi_ys <1099438829@qq.com> Date: Wed, 2 Nov 2022 00:02:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=8F=AA=E8=83=BD=E8=AE=BE=E7=BD=AE4=E9=A1=B5?= =?UTF-8?q?=E7=9A=84=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/SystemConfig.php | 30 +++++++++++++-------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/app/admin/controller/SystemConfig.php b/app/admin/controller/SystemConfig.php index 4ef8ec4..1f402a9 100644 --- a/app/admin/controller/SystemConfig.php +++ b/app/admin/controller/SystemConfig.php @@ -34,25 +34,23 @@ class SystemConfig extends AuthController */ public function base($tab_id = 1) { - if ($tab_id < 5) { - $system = cModel::getLstByTabId($tab_id); - //特殊处理主题信息,这里不允许修改主题信息 - if ($tab_id == 1) { - foreach ($system as $key => &$form) { - if ($form['form_name'] == 'web_template') { - unset($system[$key]); - } + $system = cModel::getLstByTabId($tab_id); + //特殊处理主题信息,这里不允许修改主题信息 + if ($tab_id == 1) { + foreach ($system as $key => &$form) { + if ($form['form_name'] == 'web_template') { + unset($system[$key]); } } - $where = [ - 'status' => 1 - ]; - $tabList = tModel::lst($where); - $this->assign("tab_id", $tab_id); - $this->assign("tab_list", $tabList['data']); - $this->assign("system", $system); - return $this->fetch(); } + $where = [ + 'status' => 1 + ]; + $tabList = tModel::lst($where); + $this->assign("tab_id", $tab_id); + $this->assign("tab_list", $tabList['data']); + $this->assign("system", $system); + return $this->fetch(); } /**