From 34ab1400fb33a43dfecc2b1a44a5f3e888233a3e Mon Sep 17 00:00:00 2001 From: lihongjie0209 Date: Thu, 7 Sep 2023 23:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/lihongjie/coal/aop/ControllerAop.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cn/lihongjie/coal/aop/ControllerAop.java b/src/main/java/cn/lihongjie/coal/aop/ControllerAop.java index b456b7ce..f830d3db 100644 --- a/src/main/java/cn/lihongjie/coal/aop/ControllerAop.java +++ b/src/main/java/cn/lihongjie/coal/aop/ControllerAop.java @@ -87,7 +87,7 @@ public class ControllerAop { private static void updateSysLog(Throwable e, SysLogEntity sysLogEntity) { if (sysLogEntity != null) { - sysLogEntity.setStatus(1); + sysLogEntity.setStatus("1"); sysLogEntity.setStacktrace(ExceptionUtils.getStackTrace(e)); } @@ -118,7 +118,7 @@ public class ControllerAop { sysLogEntity.setIp(RequestUtils.getIp(request)); sysLogEntity.setIpLocation(RequestUtils.getIp(request)); sysLogEntity.setUrl(request.getRequestURI()); - sysLogEntity.setStatus(0); + sysLogEntity.setStatus("0"); sysLogEntity.setTimeCost(0); sysLogEntity.setUserAgent(RequestUtils.getUa(request));