fix:修复创建api测试用例报错

This commit is contained in:
zhangdahai112 2021-05-26 21:46:43 +08:00 committed by BugKing
parent c262beb5a0
commit 4bf0bd7f7a
1 changed files with 1 additions and 2 deletions

View File

@ -330,14 +330,13 @@
if (tmp.id) {
url = "/api/testcase/update";
} else {
tmp.id = tmp.request.id;
tmp.request.path = this.api.path;
if (tmp.request.protocol != "dubbo://" && tmp.request.protocol != "DUBBO") {
tmp.request.method = this.api.method;
}
}
tmp.id = tmp.request.id;
if (tmp.request.esbDataStruct != null) {
tmp.esbDataStruct = JSON.stringify(tmp.request.esbDataStruct);
}