mirror of https://gitee.com/y_project/RuoYi.git
截取返回参数长度,防止超出异常
parent
0f3d67367a
commit
6c8a389f9a
|
@ -84,7 +84,7 @@ public class LogAspect
|
|||
String ip = ShiroUtils.getIp();
|
||||
operLog.setOperIp(ip);
|
||||
// 返回参数
|
||||
operLog.setJsonResult(JSON.marshal(jsonResult));
|
||||
operLog.setJsonResult(StringUtils.substring(JSON.marshal(jsonResult), 0, 2000));
|
||||
|
||||
operLog.setOperUrl(ServletUtils.getRequest().getRequestURI());
|
||||
if (currentUser != null)
|
||||
|
|
Loading…
Reference in New Issue