fix(接口定义): 修复复制的场景查看引用场景不正确的缺陷

--bug=1018000 --user=王孝刚 【接口测试】接口自动化查看引用显示引用场景不正确
https://www.tapd.cn/55049933/s/1261545
This commit is contained in:
wxg0103 2022-10-14 11:06:18 +08:00 committed by f2c-ci-robot[bot]
parent 7a6d38bb71
commit e24cc842a1
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ public class ApiScenarioService {
scenario.setUpdateTime(System.currentTimeMillis());
scenario.setDescription(request.getDescription());
scenario.setCreateUser(SessionUtils.getUserId());
request.getScenarioDefinition().setId(scenario.getId());
scenario.setScenarioDefinition(JSON.toJSONString(request.getScenarioDefinition()));
Boolean isValidEnum = EnumUtils.isValidEnum(EnvironmentType.class, request.getEnvironmentType());
if (BooleanUtils.isTrue(isValidEnum)) {