refactor(接口测试): 优化接口无用日志的输出

--bug=1030971 --user=王孝刚 【接口测试】进入API文档页面-后端报错
https://www.tapd.cn/55049933/s/1424354
This commit is contained in:
wxg0103 2023-10-10 15:21:05 +08:00 committed by fit2-zhao
parent cc24cbc7fb
commit 22465364ef
1 changed files with 3 additions and 1 deletions

View File

@ -254,7 +254,9 @@ public class JSONUtil {
public static ArrayNode parseArrayNode(String text) { public static ArrayNode parseArrayNode(String text) {
try { try {
return (ArrayNode) objectMapper.readTree(text); if (StringUtils.isNotBlank(text)) {
return (ArrayNode) objectMapper.readTree(text);
}
} catch (Exception e) { } catch (Exception e) {
LogUtil.error(e); LogUtil.error(e);
} }