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

This commit is contained in:
RuoYi 2021-09-20 19:04:40 +08:00
parent a292cccb63
commit 36c058188a
1 changed files with 8 additions and 2 deletions

View File

@ -167,8 +167,14 @@ public class LogAspect
{
if (StringUtils.isNotNull(o) && !isFilterObject(o))
{
Object jsonObj = JSON.toJSON(o);
params += jsonObj.toString() + " ";
try
{
Object jsonObj = JSON.toJSON(o);
params += jsonObj.toString() + " ";
}
catch (Exception e)
{
}
}
}
}