fix(接口测试): 一个通知失败后,其他通知也不发送了

--bug=1044405 --user=陈建星 【项目管理】消息通知-接口用例增/删/改/执行-均不能收到站内信/邮箱/企业微信等消息通知 https://www.tapd.cn/55049933/s/1553531
This commit is contained in:
AgAngle 2024-07-24 14:33:29 +08:00 committed by 刘瑞斌
parent 9896894491
commit 311b122cda
1 changed files with 15 additions and 3 deletions

View File

@ -74,7 +74,11 @@ public class NoticeSendService {
.forEach(messageDetail -> {
MessageDetail m = SerializationUtils.clone(messageDetail);
NoticeModel n = SerializationUtils.clone(noticeModel);
this.getNoticeSender(m).send(m, n);
try {
this.getNoticeSender(m).send(m, n);
} catch (Exception e) {
LogUtils.error(e);
}
});
} catch (Exception e) {
@ -126,7 +130,11 @@ public class NoticeSendService {
.forEach(messageDetail -> {
MessageDetail m = SerializationUtils.clone(messageDetail);
NoticeModel n = SerializationUtils.clone(noticeModel);
this.getNoticeSender(m).send(m, n);
try {
this.getNoticeSender(m).send(m, n);
} catch (Exception e) {
LogUtils.error(e);
}
});
} catch (Exception e) {
@ -148,7 +156,11 @@ public class NoticeSendService {
.forEach(messageDetail -> {
MessageDetail m = SerializationUtils.clone(messageDetail);
NoticeModel n = SerializationUtils.clone(noticeModel);
this.getNoticeSender(m).send(m, n);
try {
this.getNoticeSender(m).send(m, n);
} catch (Exception e) {
LogUtils.error(e);
}
});
} catch (Exception e) {