From d5233f5f71071b579a3547d88fe535207dae107d Mon Sep 17 00:00:00 2001 From: toogee Date: Sun, 12 Jan 2020 17:38:50 +0800 Subject: [PATCH] admin/info --- app/admin/controller/Admin.php | 1 + view/admin/forum/list.html | 2 +- view/admin/forum/replys.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/admin/controller/Admin.php b/app/admin/controller/Admin.php index ef519c5..010fa07 100644 --- a/app/admin/controller/Admin.php +++ b/app/admin/controller/Admin.php @@ -136,6 +136,7 @@ class Admin extends AdminController $admin = AdminModel::find(Session::get('admin_id')); if(Request::isAjax()){ $data = Request::param(); + unset($data['auth_group_id']); $result = $admin->allowField(['nickname','sex','mobile','email','remarks'])->update($data); if($result){ $res = ['code'=>0,'msg'=>'更新成功']; diff --git a/view/admin/forum/list.html b/view/admin/forum/list.html index 4ce3d92..925cbd5 100644 --- a/view/admin/forum/list.html +++ b/view/admin/forum/list.html @@ -60,7 +60,7 @@ {{# } }} diff --git a/view/admin/forum/replys.html b/view/admin/forum/replys.html index 5c9955c..0ae5350 100644 --- a/view/admin/forum/replys.html +++ b/view/admin/forum/replys.html @@ -34,7 +34,7 @@