报错调整

main
limu 11 months ago
parent 7548bdc97a
commit 5871c56d45
  1. 2
      app/controller/admin/user/User.php

@ -619,7 +619,7 @@ class User extends BaseController
foreach ($user_role_id as $k => $value) {
$user_role_ids[$k] = (int)$value;
if (!$partnerRepository->roleExists((int)$value))
return app('json')->fail('该位置已分配,请重新选择');
return app('json')->fail('该角色已分配,请重新选择');
}
$userPartnerRepository->editPartner($id, $user_role_id);
return app('json')->success('修改成功');

Loading…
Cancel
Save