WANG 5 년 전
부모
커밋
8e4b65b2cd
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      src/main/java/cn/com/qmth/examcloud/web/security/RpcInterceptor.java

+ 6 - 1
src/main/java/cn/com/qmth/examcloud/web/security/RpcInterceptor.java

@@ -119,7 +119,12 @@ public final class RpcInterceptor implements HandlerInterceptor {
 			return false;
 		}
 
-		AccessApp accessApp = resourceManager.getAccessApp(appIdLong);
+		AccessApp accessApp = null;
+		try {
+			accessApp = resourceManager.getAccessApp(appIdLong);
+		} catch (Exception e) {
+			LOG.error("fail to get App info. appId=" + appIdLong, e);
+		}
 		if (null == accessApp) {
 			// 401
 			response.setStatus(HttpStatus.UNAUTHORIZED.value());