fix(数据集): 创建API数据集无数据

This commit is contained in:
taojinlong 2024-02-26 17:35:18 +08:00
parent 4015258ef6
commit 8b61ed2de6

View File

@ -274,6 +274,7 @@ public class ApiProvider extends Provider {
static private void handleStr(ApiDefinition apiDefinition, String jsonStr, List<JSONObject> fields, String rootPath) {
if (jsonStr.startsWith("[")) {
rootPath = rootPath + "[*]";
JSONArray jsonArray = JSONObject.parseArray(jsonStr);
for (Object o : jsonArray) {
handleStr(apiDefinition, o.toString(), fields, rootPath);