diff --git a/im-platform/src/main/java/com/bx/implatform/interceptor/AuthInterceptor.java b/im-platform/src/main/java/com/bx/implatform/interceptor/AuthInterceptor.java index 3b7b5ab..bf748d3 100644 --- a/im-platform/src/main/java/com/bx/implatform/interceptor/AuthInterceptor.java +++ b/im-platform/src/main/java/com/bx/implatform/interceptor/AuthInterceptor.java @@ -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