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());