fix(接口测试): 修复导入部分postman文件报错问题
This commit is contained in:
parent
646881e736
commit
f73576785f
|
@ -140,7 +140,11 @@ public abstract class PostmanAbstractParserParser<T> extends ApiImportAbstractPa
|
|||
if (postmanBody == null) {
|
||||
return;
|
||||
}
|
||||
String bodyMode = postmanBody.get("mode").textValue();
|
||||
String bodyMode = null;
|
||||
if (postmanBody.has("mode")) {
|
||||
bodyMode = postmanBody.get("mode").textValue();
|
||||
}
|
||||
|
||||
if (StringUtils.isBlank(bodyMode)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue