Commit 36c05818 authored by RuoYi's avatar RuoYi

防止记录日志转换出现的异常

parent a292cccb
...@@ -166,10 +166,16 @@ public class LogAspect ...@@ -166,10 +166,16 @@ public class LogAspect
for (Object o : paramsArray) for (Object o : paramsArray)
{ {
if (StringUtils.isNotNull(o) && !isFilterObject(o)) if (StringUtils.isNotNull(o) && !isFilterObject(o))
{
try
{ {
Object jsonObj = JSON.toJSON(o); Object jsonObj = JSON.toJSON(o);
params += jsonObj.toString() + " "; params += jsonObj.toString() + " ";
} }
catch (Exception e)
{
}
}
} }
} }
return params.trim(); return params.trim();
......
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