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