修复请求形参未传值记录日志异常问题

master
RuoYi 4 years ago
parent 7b94ae3a9a
commit 77ebca264a
  1. 2
      ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java

@ -197,7 +197,7 @@ public class LogAspect
{
for (int i = 0; i < paramsArray.length; i++)
{
if (!isFilterObject(paramsArray[i]))
if (StringUtils.isNotNull(paramsArray[i]) && !isFilterObject(paramsArray[i]))
{
Object jsonObj = JSON.toJSON(paramsArray[i]);
params += jsonObj.toString() + " ";

Loading…
Cancel
Save