|
@@ -69,13 +69,15 @@ public class SaTokenConfigure implements WebMvcConfigurer {
|
|
|
public SaServletFilter getSaServletFilter() {
|
|
|
return new SaServletFilter()
|
|
|
// 拦截与排除 path
|
|
|
- .addInclude("/**").addExclude("/favicon.ico")
|
|
|
+ .addInclude("/**").addExclude("/favicon.ico").addExclude("/wx/**")
|
|
|
|
|
|
// 全局认证函数
|
|
|
.setAuth(obj -> {
|
|
|
// ...
|
|
|
String path = SaHolder.getRequest().getRequestPath();
|
|
|
- if (StpUtil.isLogin() && !NO_URL.contains(path)&&!StrUtil.contains(path,"api")) {
|
|
|
+ if (StpUtil.isLogin() && !NO_URL.contains(path)
|
|
|
+ &&!StrUtil.contains(path,"api")
|
|
|
+ &&!StrUtil.contains(path,"wx")) {
|
|
|
String key = StpUtil.getLoginIdAsString();
|
|
|
String time = RedisUtil.get(key);
|
|
|
String now = DateUtil.now();
|