!30 2022-1-18 Carl

Merge pull request !30 from Admin/sit-Carl-V3
This commit is contained in:
Admin 2022-01-18 10:52:07 +00:00 committed by Gitee
commit 58d5ce432a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -70,9 +70,8 @@ public class SmartAuthenticationInterceptor extends HandlerInterceptorAdapter {
if (isNoNeedLogin) { if (isNoNeedLogin) {
return true; return true;
} }
Boolean noNeedLogin = request.getServletPath().startsWith("/royalcanin"); Boolean noNeedLogin = request.getServletPath().contains("royalcanin");
Boolean noNeedLoginToo = request.getServletPath().startsWith("/jc"); if (noNeedLogin) {
if (noNeedLogin||noNeedLoginToo) {
return true; return true;
} }
//放行的Uri前缀 //放行的Uri前缀