Commit c0f55a47 authored by yanzg's avatar yanzg

设置打包时可以通过GIT查看源码

parent ecbad115
......@@ -101,10 +101,7 @@ public class WebAspect extends BaseRequestAspect {
ex = e;
result = ExceptionHelper.getError(e);
Type returnType = getReturnType(joinPoint);
if (returnType instanceof Class) {
System.out.println(returnType.getClass());
}
if (returnType.getTypeName().indexOf(ResponseResult.class.getName()) > -1) {
if (returnType instanceof Class && ((Class) returnType).isAssignableFrom(ResponseResult.class)) {
return result;
} else {
throw e;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment