1
This commit is contained in:
1 parent
7b7febb7c7
commit
1e99feca2f
1 file changed
+4
-5
@@ -36,11 +36,10 @@ public class AuthInterceptor implements HandlerInterceptor {
|
||||
String method = request.getMethod();
|
||||
String requestURI = request.getRequestURI();
|
||||
if (ObjectUtil.equals(method, "POST") && requestURI.startsWith("/third/")) {
|
||||
return true;
|
||||
// if (thirdAuthService.checkSign(request)) {
|
||||
// return true;
|
||||
// }
|
||||
// throw new GlobalException(ResultCode.THIRD_INVALID_TOKEN);
|
||||
if (thirdAuthService.checkSign(request)) {
|
||||
return true;
|
||||
}
|
||||
throw new GlobalException(ResultCode.THIRD_INVALID_TOKEN);
|
||||
}
|
||||
|
||||
//从 http 请求头中取出 token
|
||||
|
||||
Reference in new issue
Block a user