fix(auth): 修复JWT令牌登出和刷新中间件问题
- 调整登出流程,先将JWT令牌加入黑名单再删除Cookie - 在HttpHelper中添加空响应检查,防止接口返回空内容时出错 - 在配额监控服务中增加底层白名单检查的日志记录 - 优化刷新令牌中间件,跳过登录相关页面和静态资源的令牌检查 - 改进令牌失效响应,设置正确的Content-Type并提供多语言提示信息
This commit is contained in:
@@ -4970,6 +4970,7 @@ namespace YLErp.Modules.RiskModule
|
||||
foreach (var item in positions)
|
||||
{
|
||||
CheckUnderlyingRequest clientOrderParam = new CheckUnderlyingRequest() { clientId = clientId, securityId = item.UnderlyingCode, orderQty = item.PosiQuantity * 0.0001m, side = item.PositionType - 1 };
|
||||
_logger.Info($"[CheckUnderlyingWhiteList] 构建请求参数 - clientId: {clientId}, securityId: {item.UnderlyingCode}, orderQty: {item.PosiQuantity * 0.0001m}, side: {item.PositionType - 1}");
|
||||
clientOrderParams.Add(clientOrderParam);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(baseUrl) && !string.IsNullOrEmpty(checkUrl))
|
||||
|
||||
Reference in New Issue
Block a user