去掉配置文件只能设置4页的限制

This commit is contained in:
muzi_ys 2022-11-02 00:02:30 +08:00
parent 3b715806fd
commit 79c3c9ec53
1 changed files with 14 additions and 16 deletions

View File

@ -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();
}
/**