From dba3aa9b016e667535a8ccc70151c2555cf9a321 Mon Sep 17 00:00:00 2001 From: limu Date: Fri, 22 Dec 2023 17:23:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/admin/user/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/admin/user/User.php b/app/controller/admin/user/User.php index 4c4e2d2..fc934a7 100644 --- a/app/controller/admin/user/User.php +++ b/app/controller/admin/user/User.php @@ -622,7 +622,7 @@ class User extends BaseController return app('json')->fail('所选合作人角色不存在'); } foreach ($user_role_id as $k => $value) { - $user_role_id[$k] = (int)$value; + $user_role_ids[$k] = (int)$value; if (!$partnerRepository->roleExists((int)$value)) return app('json')->fail('该位置已分配,请重新选择'); }