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

This commit is contained in:
RuoYi 2021-05-23 19:22:30 +08:00
parent 7b94ae3a9a
commit 77ebca264a
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ public class LogAspect
{ {
for (int i = 0; i < paramsArray.length; i++) 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]); Object jsonObj = JSON.toJSON(paramsArray[i]);
params += jsonObj.toString() + " "; params += jsonObj.toString() + " ";