注册页面店铺选择问题修复

This commit is contained in:
xiaowang
2026-02-24 11:17:15 +08:00
parent ab6684227b
commit 715209ede1
4 changed files with 20 additions and 11 deletions
@@ -57,9 +57,10 @@ public class AuthInterceptor implements HandlerInterceptor {
}
private boolean isWhitelistedPath(String path) {
return path.contains("/user/login") ||
path.contains("/user/register") ||
path.contains("/user/refresh-token") ||
path.contains("/shop/list/simple");
return path.contains("/api/user/login") ||
path.contains("/api/user/register") ||
path.contains("/api/user/refresh-token") ||
path.contains("/api/shop/list/simple") ||
path.contains("/health");
}
}
@@ -16,11 +16,12 @@ public class WebMvcConfig implements WebMvcConfigurer {
registry.addInterceptor(authInterceptor)
.addPathPatterns("/**")
.excludePathPatterns(
"/user/login",
"/user/register",
"/user/refresh-token",
"/shop/list/simple",
"/error"
"/api/user/login",
"/api/user/register",
"/api/user/refresh-token",
"/api/shop/list/simple",
"/error",
"/health/**"
);
}
}