This commit is contained in:
chenjianxing 2020-10-23 12:49:47 +08:00
commit c2afe58014
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl
List<NoticeDetail> noticeList = noticeService.queryNotice(testResult.getTestId());
mailService.sendApiNotification(report, noticeList);
}
if (StringUtils.equals(NoticeConstants.API, "API")) {
if (StringUtils.equals(NoticeConstants.API, report.getTriggerMode())) {
List<String> userIds = new ArrayList<>();
MessageSettingDetail messageSettingDetail = noticeService.searchMessage();
List<MessageDetail> taskList = messageSettingDetail.getJenkinsTask();