后端文件更新

This commit is contained in:
2019-07-09 20:39:01 +08:00
parent 3d9aa3e742
commit 79800d9fcc
18 changed files with 976 additions and 617 deletions
+10 -1
View File
@@ -52,7 +52,16 @@ class Config extends Admin {
*/
public function group(ConfigModel $config) {
if ($this->request->isAjax()) {
$this->data['code'] = 1;
$data = $this->request->param();
$result = $config->updateConfig($data);
if (false !== $result) {
$this->data['code'] = 0;
$this->data['msg'] = "更新成功!";
}else{
$this->data['code'] = 1;
$this->data['msg'] = $config->error;
}
return $this->data;
} else {
$id = $this->request->param('id', 1);