fix(notice): 已读明细空态 receivers 不可变列表修复 + SDK 暴露面测试补齐
build / build-push (push) Successful in 1m2s

- NoticeService.getReadDetailGrouped:receivers 空态(全员通知)返回不可变 emptyList,追加已读者前先拷贝为 ArrayList,避免 UnsupportedOperationException
- 新增 NoticeReadDetailGroupedAllTypeTest、NoticeSdkAdviceExposureTest
This commit is contained in:
chenxing
2026-10-10 15:17:08 +08:00
parent b85f5e16fb
commit 48cd8884d8
3 changed files with 197 additions and 0 deletions
@@ -707,6 +707,8 @@ public class NoticeService implements INoticeService {
if (receivers.isEmpty()) {
receivers = parseReceiveAccounts(notice.getReceiveList());
}
// 空态(ALL 全员通知)返回的是不可变 emptyList,先拷贝再追加
receivers = new ArrayList<>(receivers);
// 已读者不在接收明细中(如追送/数据修补),补充到末尾,保证已读情况完整
for (String account : readAccounts) {
if (!receivers.contains(account)) {