|
@@ -30,8 +30,7 @@ import cn.com.qmth.examcloud.web.support.StatusResponse;
|
|
|
*/
|
|
|
public final class RpcInterceptor implements HandlerInterceptor {
|
|
|
|
|
|
- private static final ExamCloudLog LOG = ExamCloudLogFactory
|
|
|
- .getLog(RpcInterceptor.class);
|
|
|
+ private static final ExamCloudLog LOG = ExamCloudLogFactory.getLog(RpcInterceptor.class);
|
|
|
|
|
|
private ResourceManager resourceManager;
|
|
|
|
|
@@ -42,8 +41,10 @@ public final class RpcInterceptor implements HandlerInterceptor {
|
|
|
|
|
|
ApiInfo apiInfo = (ApiInfo) request
|
|
|
.getAttribute(HttpServletRequestAttribute.$_API_INFO.name());
|
|
|
+ if (null == apiInfo) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
Class<?> ctrClass = apiInfo.getBeanType();
|
|
|
-
|
|
|
if (!CloudService.class.isAssignableFrom(ctrClass)) {
|
|
|
return true;
|
|
|
}
|