[更新]优化系统参数配置

This commit is contained in:
Anyon 2017-05-17 13:57:41 +08:00
parent 935a0e50d2
commit 45cfb78ed7

View File

@ -43,15 +43,15 @@ class Config extends BasicAdmin {
*/ */
public function index() { public function index() {
if (!$this->request->isPost()) { if (!$this->request->isPost()) {
parent::_list($this->table); $this->assign('title', $this->table);
} else { return view();
}
foreach ($this->request->post() as $key => $vo) { foreach ($this->request->post() as $key => $vo) {
sysconf($key, $vo); sysconf($key, $vo);
} }
LogService::write('系统管理', '修改系统配置参数成功'); LogService::write('系统管理', '修改系统配置参数成功');
$this->success('数据修改成功!', ''); $this->success('数据修改成功!', '');
} }
}
/** /**
* 文件存储配置 * 文件存储配置