fix: 修复解析api数据错误

This commit is contained in:
taojinlong
2025-04-17 15:47:52 +08:00
committed by taojinlong
parent 3cb9e188e8
commit 2e76d84a31

View File

@@ -787,7 +787,7 @@ public class ApiUtils {
for (int i = 0; i < jsonPaths.size(); i++) {
List<String> data = new ArrayList<>();
Object object = JsonPath.using(jsonPathConf).parse(result).read(jsonPaths.get(i));
if (object instanceof List && jsonPaths.get(i).contains("[*]")) {
if (object instanceof List) {
for (Object o : (List<String>) object) {
if (Objects.isNull(o)) {
data.add("");