Skip to content

Commit ea65597

Browse files
committed
fix:bug fix
1 parent 0b10a34 commit ea65597

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/main/java/cn/jackbin/SimpleRecord/common/aspect/LogAspect.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public class LogAspect implements Ordered {
4444
// 执行顺序,越小越先执行(遵从同心圆的概念)
4545
private final int order = 100;
4646

47-
ThreadLocal<String> params = new ThreadLocal<>();
48-
4947
/** 排除敏感属性字段 */
5048
public static final String[] EXCLUDE_PROPERTIES = { "password", "oldPassword", "newPassword", "confirmPassword" };
5149

@@ -54,11 +52,6 @@ public void doHandler(){
5452

5553
}
5654

57-
@Before("doHandler()")
58-
public void before(JoinPoint joinPoint) {
59-
params.set(getRequestParams());
60-
}
61-
6255
/**
6356
* 处理请求后执行
6457
* @param joinPoint
@@ -107,8 +100,7 @@ private void handleLog(final JoinPoint joinPoint, final Exception e, final Objec
107100
// 是否需要保存request,参数和值
108101
if (annotationLog.isSaveRequestData()) {
109102
// 获取参数的信息,传入到数据库中。
110-
// setRequestValue(logDO);
111-
logDO.setRequestParam(params.get());
103+
logDO.setRequestParam(getRequestParams());
112104
}
113105
// 设置返回结果
114106
logDO.setJsonResult(JSON.toJSONString(jsonResult));

0 commit comments

Comments
 (0)