Commit 4f03c9af authored by yanzg's avatar yanzg

常规BUG的修改

parent a4df9515
......@@ -154,6 +154,9 @@ public class BaseRequestAspect implements ThreadNext.Next {
protected void responseLog(String tag, String url, ProceedingJoinPoint joinPoint, long start, Object result, Exception resultEx) {
try {
String name = joinPoint.getSignature().getName();
if (StringHelper.isEmpty(url)) {
url = String.format("%s.%s", joinPoint.getSignature().getDeclaringTypeName(), name);
}
// 处理结果
ResponseResult responseResult;
if (result instanceof ResponseResult) {
......
......@@ -3,6 +3,7 @@ package com.yanzuoguang.cloud.aop;
import com.yanzuoguang.util.contants.ResultConstants;
import com.yanzuoguang.util.exception.CodeException;
import com.yanzuoguang.util.exception.ExceptionHelper;
import com.yanzuoguang.util.helper.StringHelper;
import com.yanzuoguang.util.vo.ResponseResult;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
......@@ -60,7 +61,7 @@ public class FeignAspect extends BaseRequestAspect {
ex = e;
throw e;
} finally {
responseLog(TAG, joinPoint.getSignature().getName(), joinPoint, start, result, ex);
responseLog(TAG, StringHelper.EMPTY, joinPoint, start, result, ex);
}
}
......
package com.yanzuoguang.cloud.aop;
import com.yanzuoguang.util.exception.ExceptionHelper;
import com.yanzuoguang.util.helper.StringHelper;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
......@@ -46,7 +47,7 @@ public class MqAspect extends BaseRequestAspect {
ex = e;
throw e;
} finally {
responseLog(TAG, joinPoint.getSignature().getName(), joinPoint, start, result, ex);
responseLog(TAG, StringHelper.EMPTY, joinPoint, start, result, ex);
}
}
......
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