mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 11:08:38 +08:00
fix(接口测试): sql/dubbo 拉取参数处理有误
--bug=1011641/1011642 --user=郭雨琦 拉取参数处理有误
This commit is contained in:
parent
9d67ee3e1d
commit
637a6371c1
@ -120,7 +120,6 @@ public class MsDefinitionParser extends MsAbstractParser<ApiDefinitionImport> {
|
||||
apiDefinition.setProjectId(this.projectId);
|
||||
String request = apiDefinition.getRequest();
|
||||
JSONObject requestObj = JSONObject.parseObject(request);
|
||||
// requestObj.put("id", id);
|
||||
if(requestObj.get("projectId")!=null){
|
||||
requestObj.put("projectId", apiDefinition.getProjectId());
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ export function hisDataProcessing(array, request) {
|
||||
}
|
||||
}
|
||||
assertionsIndex.forEach(item => {
|
||||
const rmIndex = request.hashTree.findIndex((d) => d.id === item.id);
|
||||
const rmIndex = request.hashTree.findIndex((d) => d.id === item.id&&d.resourceId===item.resourceId);
|
||||
request.hashTree.splice(rmIndex, 1);
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user