|
|
|
@ -140,7 +140,7 @@ public class SecUserServiceImpl implements SecUserService { |
|
|
|
|
// 查询账户角色
|
|
|
|
|
SecRole role = secRoleService.getDetail(user.getRoleId()); |
|
|
|
|
if (role == null) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "登录账户角色不存在"); |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "登录账户角色不存在,请联系管理员进行分配"); |
|
|
|
|
} |
|
|
|
|
// 角色菜单
|
|
|
|
|
List<MenuTreeModel> menuTree = secMenuService.queryMenuTree(role.getId()); |
|
|
|
|