fix:数据预测修复用户租户id丢失
This commit is contained in:
@@ -57,12 +57,14 @@ public abstract class BaseAuthFilter implements Filter {
|
||||
|
||||
// 检查是否在白名单中(如果子类需要此功能)
|
||||
if (shouldCheckWhitelist() && isWhitelisted(req)) {
|
||||
log.info("请求路径在白名单中,无需认证");
|
||||
filterChain.doFilter(servletRequest, servletResponse);
|
||||
return;
|
||||
}
|
||||
|
||||
// 执行认证检查
|
||||
if (!shouldSkipAuthentication(req) && !hasContext) {
|
||||
log.error("未登录或认证信息缺失");
|
||||
handleUnauthenticatedRequest(servletResponse);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user