mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]优化系统参数配置
This commit is contained in:
parent
935a0e50d2
commit
45cfb78ed7
@ -43,14 +43,14 @@ 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) {
|
|
||||||
sysconf($key, $vo);
|
|
||||||
}
|
|
||||||
LogService::write('系统管理', '修改系统配置参数成功');
|
|
||||||
$this->success('数据修改成功!', '');
|
|
||||||
}
|
}
|
||||||
|
foreach ($this->request->post() as $key => $vo) {
|
||||||
|
sysconf($key, $vo);
|
||||||
|
}
|
||||||
|
LogService::write('系统管理', '修改系统配置参数成功');
|
||||||
|
$this->success('数据修改成功!', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user