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('该位置已分配,请重新选择'); }