From 44c99ac1fb9646213114934a89f56f4173b68bc3 Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Thu, 14 May 2020 18:07:29 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E5=AE=8C=E5=96=84=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Auth.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/admin/controller/Auth.php b/application/admin/controller/Auth.php index 7042073..7d74bad 100644 --- a/application/admin/controller/Auth.php +++ b/application/admin/controller/Auth.php @@ -139,6 +139,7 @@ class Auth extends Base { */ public function edit() { $res = AdminAuthGroup::update([ + 'id' => $this->request->post('id', 0), 'name' => $this->request->post('name', ''), 'description' => $this->request->post('description', '') ]); @@ -272,5 +273,7 @@ class Auth extends Base { (new AdminAuthRule())->whereIn('url', $urlArr)->where('group_id', $id)->delete(); } } + + return $this->buildSuccess(); } }