删除多余路径

This commit is contained in:
yanglei 2026-02-11 09:29:56 +08:00
parent cf600c2094
commit 16b97676ab

View File

@ -35,7 +35,6 @@ public class SaTokenConfigure {
}
// 1. 放行不需要鉴权的路径
SaRouter.match("/user/doLogin").free(r -> {});
SaRouter.match("/staff/ebikeOperatorStaff/login").free(r -> {});
SaRouter.match("/payment/ebikeOrder/api/**").free(r -> {});
SaRouter.match("/payment/wxPayment/api/**").free(r -> {});
@ -51,7 +50,6 @@ public class SaTokenConfigure {
// 3. 其他所有路径统一鉴权 (必须放在最后避免覆盖前面的规则)
SaRouter.match("/**")
.notMatch("/user/doLogin")
.notMatch("/staff/ebikeOperatorStaff/login")
.notMatch("/payment/ebikeOrder/api/**")
.notMatch("/payment/wxPayment/api/**")