From 1050a0dbace06b1510d53de5baedfc0ca07c8d71 Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Mon, 02 Mar 2026 08:26:19 +0800
Subject: [PATCH] 2026-03-02 优化航线轨迹,没有任务的情况下,不记录轨迹信息
---
ard-framework/src/main/java/com/ard/framework/security/filter/JwtAuthenticationTokenFilter.java | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/ard-framework/src/main/java/com/ard/framework/security/filter/JwtAuthenticationTokenFilter.java b/ard-framework/src/main/java/com/ard/framework/security/filter/JwtAuthenticationTokenFilter.java
index 722c5af..9325d0c 100644
--- a/ard-framework/src/main/java/com/ard/framework/security/filter/JwtAuthenticationTokenFilter.java
+++ b/ard-framework/src/main/java/com/ard/framework/security/filter/JwtAuthenticationTokenFilter.java
@@ -19,7 +19,7 @@
/**
* token过滤器 验证token有效性
*
- * @author ruoyi
+ * @author ard
*/
@Component
public class JwtAuthenticationTokenFilter extends OncePerRequestFilter
@@ -31,6 +31,14 @@
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
throws ServletException, IOException
{
+ // 2026-02-04 zwy 跳过对/minioTransfer/**路径的 Token 解析
+ String requestURI = request.getRequestURI();
+ // 代理接口直接放行,不解析JWT
+ if (requestURI.startsWith("/minioTransfer")) {
+ chain.doFilter(request, response);
+ return;
+ }
+
LoginUser loginUser = tokenService.getLoginUser(request);
if (StringUtils.isNotNull(loginUser) && StringUtils.isNull(SecurityUtils.getAuthentication()))
{
--
Gitblit v1.9.3