修改 过滤不要需要验证的接口(path)
This commit is contained in:
@@ -50,8 +50,15 @@ public class TsTokenAspect {
|
||||
|
||||
// 过滤不要需要验证的接口(path)
|
||||
String requestURI = ServletKit.getRequest().getRequestURI();
|
||||
if (StrUtil.startWithAnyIgnoreCase(requestURI, tsTokenConfig.getIgnorePaths())) {
|
||||
return;
|
||||
for (String path : tsTokenConfig.getIgnorePaths()) {
|
||||
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