fix(接口测试): 解决接口导入非HTTP协议文件覆盖模块时报错问题
--user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001017248
This commit is contained in:
parent
3b8d299dd1
commit
21999ab602
|
@ -674,7 +674,7 @@ public class ApiModuleService extends NodeTreeService<ApiModuleDTO> {
|
||||||
List<ApiDefinitionWithBLOBs> singleOptionDatas = new ArrayList<>();
|
List<ApiDefinitionWithBLOBs> singleOptionDatas = new ArrayList<>();
|
||||||
removeOtherChooseModuleRepeat(optionDatas, singleOptionDatas, chooseModulePath);
|
removeOtherChooseModuleRepeat(optionDatas, singleOptionDatas, chooseModulePath);
|
||||||
optionDatas = singleOptionDatas;
|
optionDatas = singleOptionDatas;
|
||||||
optionMap = optionDatas.stream().collect(Collectors.toMap(t -> t.getName() + t.getMethod() + t.getPath() + chooseModulePath, api -> api));
|
optionMap = optionDatas.stream().collect(Collectors.toMap(t -> t.getName().concat(chooseModulePath), api -> api));
|
||||||
} else {
|
} else {
|
||||||
getNoHChooseModuleUrlRepeatOptionMap(optionDatas, optionMap, chooseModulePath);
|
getNoHChooseModuleUrlRepeatOptionMap(optionDatas, optionMap, chooseModulePath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue