feat: 完成聊天室领域与用户领域划分通讯

This commit is contained in:
陈淳
2024-04-09 17:45:12 +08:00
parent 641217085f
commit 944bd8c956
10 changed files with 188 additions and 93 deletions

View File

@@ -271,7 +271,7 @@ namespace Yi.Framework.Rbac.Application.Services
throw new UserFriendlyException("用户未登录");
}
//此处优先从缓存中获取
var output = await _userManager.Get(userId.Value);
var output = await _userManager.GetInfoAsync(userId.Value);
return output;
}
@@ -290,7 +290,7 @@ namespace Yi.Framework.Rbac.Application.Services
throw new AbpAuthorizationException("用户未登录");
}
var data = await _userRepository.GetUserAllInfoAsync(userId ?? Guid.Empty);
var data = await _userManager.GetInfoAsync(userId!.Value);
var menus = data.Menus.ToList();
//为超级管理员直接给全部路由