From 82673cdcfacc4e876729546c0576a2faa006526b Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Fri, 5 Dec 2025 10:34:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E7=9B=98=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PermLogic.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/common/logic/PermLogic.php b/app/common/logic/PermLogic.php index ea6a7db..e5af378 100644 --- a/app/common/logic/PermLogic.php +++ b/app/common/logic/PermLogic.php @@ -29,7 +29,6 @@ class PermLogic $resources = Resource::where('id', $resources_id)->get(); $all = $all->merge($resources); } - return $all->unique('id')->values()->sortBy('sort'); // 遍历用户的所有角色,合并每个角色所拥有的资源 foreach ($user->roles as $role) {