|
@@ -42,8 +42,11 @@ public class UrlAccessDecisionManager implements AccessDecisionManager {
|
|
|
int res = tokenFacade.newVerifyToken(tokenStr, 1);
|
|
|
if (-1 == res) {
|
|
|
throw new CommonException(ServiceErrorCode.LONGIN_ERROE);
|
|
|
+ } else if (-2 == res) {
|
|
|
+ throw new CommonException(ServiceErrorCode.USER_POWER_UP);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
if (matchPermitAllUrl(request)) {
|
|
|
return;
|
|
|
}
|
|
@@ -348,6 +351,7 @@ public class UrlAccessDecisionManager implements AccessDecisionManager {
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
private boolean matchNotCheckUrl(HttpServletRequest request) {
|
|
|
if (matchers("/swagger/**", request)
|
|
|
|| matchers("/v2/**", request)
|