This commit is contained in:
2026-01-05 19:11:16 +08:00
73 changed files with 400 additions and 323 deletions

View File

@@ -81,10 +81,10 @@ public sealed class AdminAuthService(
throw new BusinessException(ErrorCodes.Unauthorized, "账号或密码错误");
}
// 4. (空行后) 更新登录成功状态
// 4. 更新登录成功状态
await UpdateLoginSuccessAsync(user.Id, now, cancellationToken);
// 5. (空行后) 构建用户档案并生成令牌
// 5. 构建用户档案并生成令牌
var profile = await BuildProfileAsync(user, cancellationToken);
return await jwtTokenService.CreateTokensAsync(profile, false, cancellationToken);
}