修改传递的参数
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net8
hang 2024-12-23 16:34:32 +08:00
parent a2809dc15a
commit d1bf517aa7
1 changed files with 4 additions and 3 deletions

View File

@ -1036,7 +1036,7 @@ namespace IRaCIS.Core.Application.Service
});
//返回临时token
userLoginReturnModel.JWTStr = _tokenService.GetToken(new UserTokenInfo() { UserName = userName });
userLoginReturnModel.JWTStr = _tokenService.GetToken(new UserTokenInfo() { IdentityUserId = _userInfo.IdentityUserId, UserName = userName });
var userId = loginUser.Id;
@ -1089,13 +1089,14 @@ namespace IRaCIS.Core.Application.Service
/// <summary>
/// 验证密码成功后选定角色然后获取当前角色的Token
/// </summary>
/// <param name="identityUserId"></param>
/// <param name="userTypeId"></param>
/// <param name="_tokenService"></param>
/// <returns></returns>
/// <exception cref="BusinessValidationFailedException"></exception>
public async Task<string> LoginSelectUserRole(Guid identityUserId, Guid userTypeId, [FromServices] ITokenService _tokenService)
public async Task<string> LoginSelectUserRole(Guid userTypeId, [FromServices] ITokenService _tokenService)
{
var identityUserId = _userInfo.IdentityUserId;
var userTokenInfo = await _userRepository.Where(t => t.IdentityUserId == identityUserId && t.UserTypeId == userTypeId).Select(t => new UserTokenInfo()
{
UserRoleId = t.Id,