Commit d5f0a101 authored by lwh's avatar lwh

feat: 开放非登录时的openapi请求,用于savepoint维护

parent acdb1797
...@@ -77,7 +77,7 @@ public class AppConfig implements WebMvcConfigurer { ...@@ -77,7 +77,7 @@ public class AppConfig implements WebMvcConfigurer {
registry.addInterceptor(new SaInterceptor(handler -> { registry.addInterceptor(new SaInterceptor(handler -> {
SaRouter.match("/openapi/**", r -> { SaRouter.match("/openapi/**", r -> {
if (!StpUtil.isLogin()) { if (!StpUtil.isLogin()) {
StpUtil.switchTo(BaseConstant.ADMIN_ID); throw new StopMatchException();
} }
}); });
if (!StpUtil.isLogin()) { if (!StpUtil.isLogin()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment