From d8c6c1079cfaeb43a1a8c095e76a9621de18be8d Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Fri, 15 May 2026 10:58:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E8=B6=85=E7=BA=A7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=20=E8=A7=92=E8=89=B2=20=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=88=A0=E9=99=A43?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/AdminRoleMenu.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Models/AdminRoleMenu.php b/app/Models/AdminRoleMenu.php index 0957c54..29d6241 100644 --- a/app/Models/AdminRoleMenu.php +++ b/app/Models/AdminRoleMenu.php @@ -52,8 +52,7 @@ class AdminRoleMenu extends Model public static function existsRoleMenu($role_id, $menu_ids): bool { $count = count($menu_ids); - $existsCount = self::query()->where('role_id', $role_id) - ->whereIn('menu_id', $menu_ids)->count(); + $existsCount = self::query()->where('role_id', $role_id)->count(); return $count != $existsCount; } }