feat: 消息设置

This commit is contained in:
wenyann 2020-10-23 11:25:18 +08:00
parent e59926abee
commit 2c839b0d61
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();