修改 过滤不要需要验证的接口(path)
This commit is contained in:
@@ -50,8 +50,15 @@ public class TsTokenAspect {
|
|||||||
|
|
||||||
// 过滤不要需要验证的接口(path)
|
// 过滤不要需要验证的接口(path)
|
||||||
String requestURI = ServletKit.getRequest().getRequestURI();
|
String requestURI = ServletKit.getRequest().getRequestURI();
|
||||||
if (StrUtil.startWithAnyIgnoreCase(requestURI, tsTokenConfig.getIgnorePaths())) {
|
for (String path : tsTokenConfig.getIgnorePaths()) {
|
||||||
return;
|
if (path.contains("/**")) {
|
||||||
|
path = path.replace("/**", "");
|
||||||
|
if (StrUtil.startWith(requestURI, path)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else if (requestURI.equals(path)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 过滤不要需要验证的接口(注解)
|
// 过滤不要需要验证的接口(注解)
|
||||||
|
|||||||
Reference in New Issue
Block a user