feat:网关过滤

This commit is contained in:
xiang
2026-03-22 19:05:27 +08:00
parent 78a26b2ed2
commit 6951a2513f
3 changed files with 27 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ public class AuthGlobalFilter implements GlobalFilter, Ordered {
log.debug("跳过 Token 校验: {}", path);
return chain.filter(exchange);
}
// todo open开放接口如何处理
// 获取 Header 中的 Authorization
String token = request.getHeaders().getFirst("Authorization");