diff --git a/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java b/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java index e96f4b6ae2..a483fd82a4 100644 --- a/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java +++ b/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java @@ -178,7 +178,7 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl List noticeList = noticeService.queryNotice(testResult.getTestId()); mailService.sendApiNotification(report, noticeList); } - if (StringUtils.equals(NoticeConstants.API, "API")) { + if (StringUtils.equals(NoticeConstants.API, report.getTriggerMode())) { List userIds = new ArrayList<>(); MessageSettingDetail messageSettingDetail = noticeService.searchMessage(); List taskList = messageSettingDetail.getJenkinsTask();