fix: postman导入后参数无法编辑

This commit is contained in:
chenjianxing 2022-04-26 23:00:32 +08:00 committed by jianxing
parent 7f7de58d82
commit 7d5b2fffb0
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ public abstract class PostmanAbstractParserParser<T> extends ApiImportAbstractPa
} else {
request.setPath("/");
}
request.getBody().setType("KeyValue");
parseBody(request.getBody(), requestDesc);
request.setArguments(parseKeyValue(url == null ? new ArrayList<>() : url.getQuery()));
request.setHeaders(parseKeyValue(requestDesc.getHeader()));
@ -104,7 +105,7 @@ public abstract class PostmanAbstractParserParser<T> extends ApiImportAbstractPa
private List<KeyValue> parseKeyValue(List<PostmanKeyValue> postmanKeyValues) {
if (postmanKeyValues == null) {
return null;
return new ArrayList<>();
}
List<KeyValue> keyValues = new ArrayList<>();
postmanKeyValues.forEach(item -> {