From 8419e7f0304dca25d4d023b0037190b6713b86ea Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Tue, 2 Jul 2019 16:22:39 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E4=BF=AE=E5=A4=8D=E6=9D=83=E9=99=90?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Auth.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/application/admin/controller/Auth.php b/application/admin/controller/Auth.php index 2632a2f..708802f 100644 --- a/application/admin/controller/Auth.php +++ b/application/admin/controller/Auth.php @@ -288,10 +288,7 @@ class Auth extends Base { } if (count($needDel)) { $urlArr = array_keys($needDel); - AdminAuthRule::destroy([ - 'group_id' => $postData['id'], - 'url' => ['in', $urlArr] - ]); + (new AdminAuthRule())->whereIn('url', $urlArr)->where('group_id', $postData['id'])->delete(); } }