fix(接口测试): 修复测试计划接口场景运行环境显示错误问题

--bug=1023758 --user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001023758
This commit is contained in:
guoyuqi 2023-02-23 17:49:31 +08:00 committed by fit2-zhao
parent 251b23cceb
commit ea64ee2cba
1 changed files with 2 additions and 3 deletions

View File

@ -321,10 +321,9 @@ public class ApiScenarioExecuteService {
}
//对报告的envMap做过滤过滤多余的key
Map<String, String> diffEnvMap = new HashMap<>();
Map<String, String> envMap = runModeConfig.getEnvMap();
planEnvMap.forEach((k, v) -> {
if (envMap != null && envMap.get(k) != null) {
diffEnvMap.put(k, envMap.get(k));
if (StringUtils.equals(planApiScenario.getProjectId(), k)) {
diffEnvMap.put(k, v);
}
});
runModeConfig.setEnvMap(diffEnvMap);