From 45cfb78ed76b45b47850ec6aa170da163ded0640 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 17 May 2017 13:57:41 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BC=98=E5=8C=96=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Config.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/application/admin/controller/Config.php b/application/admin/controller/Config.php index 91fa76017..44d520852 100644 --- a/application/admin/controller/Config.php +++ b/application/admin/controller/Config.php @@ -43,14 +43,14 @@ class Config extends BasicAdmin { */ public function index() { if (!$this->request->isPost()) { - parent::_list($this->table); - } else { - foreach ($this->request->post() as $key => $vo) { - sysconf($key, $vo); - } - LogService::write('系统管理', '修改系统配置参数成功'); - $this->success('数据修改成功!', ''); + $this->assign('title', $this->table); + return view(); } + foreach ($this->request->post() as $key => $vo) { + sysconf($key, $vo); + } + LogService::write('系统管理', '修改系统配置参数成功'); + $this->success('数据修改成功!', ''); } /**