fix(接口测试): sql/dubbo 拉取参数处理有误

--bug=1011641/1011642
--user=郭雨琦
拉取参数处理有误
This commit is contained in:
guoyuqi 2022-03-24 10:31:28 +08:00 committed by xiaomeinvG
parent 9d67ee3e1d
commit 637a6371c1
2 changed files with 1 additions and 2 deletions

View File

@ -120,7 +120,6 @@ public class MsDefinitionParser extends MsAbstractParser<ApiDefinitionImport> {
apiDefinition.setProjectId(this.projectId); apiDefinition.setProjectId(this.projectId);
String request = apiDefinition.getRequest(); String request = apiDefinition.getRequest();
JSONObject requestObj = JSONObject.parseObject(request); JSONObject requestObj = JSONObject.parseObject(request);
// requestObj.put("id", id);
if(requestObj.get("projectId")!=null){ if(requestObj.get("projectId")!=null){
requestObj.put("projectId", apiDefinition.getProjectId()); requestObj.put("projectId", apiDefinition.getProjectId());
} }

View File

@ -113,7 +113,7 @@ export function hisDataProcessing(array, request) {
} }
} }
assertionsIndex.forEach(item => { 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); request.hashTree.splice(rmIndex, 1);
}) })