diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index 354b977f24..37bec27ddd 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -353,6 +353,7 @@ public class ApiAutomationService { deleteUpdateBodyFile(scenario, beforeScenario); List useUrl = this.parseUrl(scenario); scenario.setUseUrl(JSONArray.toJSONString(useUrl)); + scenario.setCreateUser(null); apiScenarioMapper.updateByPrimaryKeySelective(scenario); apiScenarioReferenceIdService.saveByApiScenario(scenario); extScheduleMapper.updateNameByResourceID(request.getId(), request.getName());// 修改场景name,同步到修改首页定时任务 diff --git a/backend/src/main/java/io/metersphere/service/ProjectService.java b/backend/src/main/java/io/metersphere/service/ProjectService.java index 8acaea6d4e..084cf10ef3 100644 --- a/backend/src/main/java/io/metersphere/service/ProjectService.java +++ b/backend/src/main/java/io/metersphere/service/ProjectService.java @@ -306,6 +306,7 @@ public class ProjectService { this.checkProjectTcpPort(project); project.setCreateTime(null); + project.setCreateUser(null); project.setUpdateTime(System.currentTimeMillis()); checkProjectExist(project); if (BooleanUtils.isTrue(project.getCustomNum())) {