diff --git a/api-test/backend/src/main/java/io/metersphere/service/TestResultService.java b/api-test/backend/src/main/java/io/metersphere/service/TestResultService.java index 1bf21761f3..c19bda14e6 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/TestResultService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/TestResultService.java @@ -217,10 +217,10 @@ public class TestResultService { String failedContext = "${operator}执行接口自动化失败: ${name}" + ", 报告: ${reportUrl}"; if (StringUtils.equals(ReportTriggerMode.API.name(), report.getTriggerMode())) { - subject = Translator.get("task_notification_jenkins"); + subject = "Jenkins任务通知"; } if (StringUtils.equals(ReportTriggerMode.SCHEDULE.name(), report.getTriggerMode())) { - subject = Translator.get("task_notification"); + subject = "任务通知"; } if (StringUtils.equalsIgnoreCase(ApiReportStatus.SUCCESS.name(), report.getStatus())) { event = NoticeConstants.Event.EXECUTE_SUCCESSFUL; diff --git a/performance-test/backend/src/main/java/io/metersphere/notice/PerformanceNoticeEvent.java b/performance-test/backend/src/main/java/io/metersphere/notice/PerformanceNoticeEvent.java index 3eef14bbd4..0ccfd12429 100644 --- a/performance-test/backend/src/main/java/io/metersphere/notice/PerformanceNoticeEvent.java +++ b/performance-test/backend/src/main/java/io/metersphere/notice/PerformanceNoticeEvent.java @@ -47,10 +47,10 @@ public class PerformanceNoticeEvent implements LoadTestFinishEvent { String successContext = "${operator}执行性能测试成功: ${name}, 报告: ${reportUrl}"; String failedContext = "${operator}执行性能测试失败: ${name}, 报告: ${reportUrl}"; if (StringUtils.equals(ReportTriggerMode.API.name(), loadTestReport.getTriggerMode())) { - subject = Translator.get("task_notification_jenkins"); + subject = "Jenkins任务通知"; } if (StringUtils.equals(ReportTriggerMode.SCHEDULE.name(), loadTestReport.getTriggerMode())) { - subject = Translator.get("task_notification"); + subject = "任务通知"; } if (PerformanceTestStatus.Completed.name().equals(loadTestReport.getStatus())) { diff --git a/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanMessageService.java b/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanMessageService.java index d0203d2bba..7c83589b60 100644 --- a/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanMessageService.java +++ b/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanMessageService.java @@ -128,9 +128,9 @@ public class TestPlanMessageService { String failedContext = "${operator}执行的 ${name} 测试计划运行失败, 报告: ${planShareUrl}"; String context = "${operator}完成了测试计划: ${name}, 报告: ${planShareUrl}"; if (StringUtils.equals(testPlanReport.getTriggerMode(), ReportTriggerMode.API.name())) { - subject = Translator.get("task_notification_jenkins"); + subject = "Jenkins任务通知"; } else { - subject = Translator.get("task_notification"); + subject = "任务通知"; } // 计算通过率 TestPlanDTOWithMetric testPlanDTOWithMetric = BeanUtils.copyBean(new TestPlanDTOWithMetric(), testPlan);