fix:数据预测修复用户租户id丢失

This commit is contained in:
2026-03-06 15:06:15 +08:00
parent 2fb49125fd
commit cc5a993aa4

View File

@@ -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;
}