Commit 88ac5be882915c44ae6c064d9d245a96fc219581
1 parent
29746d14
【修复】ApiAccessLogInterceptor 处理 request body 为 "" 空串的情况
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/apilog/core/interceptor/ApiAccessLogInterceptor.java
| @@ -43,7 +43,7 @@ public class ApiAccessLogInterceptor implements HandlerInterceptor { | @@ -43,7 +43,7 @@ public class ApiAccessLogInterceptor implements HandlerInterceptor { | ||
| 43 | log.info("[preHandle][开始请求 URL({}) 无参数]", request.getRequestURI()); | 43 | log.info("[preHandle][开始请求 URL({}) 无参数]", request.getRequestURI()); |
| 44 | } else { | 44 | } else { |
| 45 | log.info("[preHandle][开始请求 URL({}) 参数({})]", request.getRequestURI(), | 45 | log.info("[preHandle][开始请求 URL({}) 参数({})]", request.getRequestURI(), |
| 46 | - StrUtil.nullToDefault(requestBody, queryString.toString())); | 46 | + StrUtil.blankToDefault(requestBody, queryString.toString())); |
| 47 | } | 47 | } |
| 48 | // 计时 | 48 | // 计时 |
| 49 | StopWatch stopWatch = new StopWatch(); | 49 | StopWatch stopWatch = new StopWatch(); |