From 17ef7af8603e0d55c76eb89fe70adbb40bb625ba Mon Sep 17 00:00:00 2001 From: augushong Date: Fri, 17 Jul 2026 23:33:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(role):=20=E4=BF=AE=E5=A4=8D=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E5=88=A0=E9=99=A4=E6=8C=89=20auth=5Fids=20=E6=9F=A5?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=9A=84=E5=AD=90=E4=B8=B2=E6=B7=B7=E6=B7=86?= =?UTF-8?q?(like=E2=86=92FIND=5FIN=5FSET)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- extend/base/common/command/admin/role/AdminRoleDeleteBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/base/common/command/admin/role/AdminRoleDeleteBase.php b/extend/base/common/command/admin/role/AdminRoleDeleteBase.php index bcf7a08..7e417e3 100644 --- a/extend/base/common/command/admin/role/AdminRoleDeleteBase.php +++ b/extend/base/common/command/admin/role/AdminRoleDeleteBase.php @@ -39,7 +39,7 @@ class AdminRoleDeleteBase extends Command return false; } - $checkUsers = SystemAdmin::where('auth_ids', 'like', '%' . $roleId . '%') + $checkUsers = SystemAdmin::whereRaw('FIND_IN_SET(:roleId, auth_ids)', ['roleId' => $roleId]) ->where('delete_time', 0) ->count();