fix(数据集): 创建API数据集无数据
This commit is contained in:
parent
4015258ef6
commit
8b61ed2de6
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user