bravo-receiverList-remove

This commit is contained in:
khalil
2025-03-26 11:35:32 +08:00
parent 597258db13
commit c9bebe35c5

View File

@@ -114,6 +114,8 @@ public class BravoGiftSendService {
}
superNum = subSuperNum;
List<Long> superGrilList = receiverList.subList(0, superNum);
//因为外层传入的receiverList是Array.asList生成的不能修改所以需要重新构造一个
receiverList = new ArrayList<>(receiverList);
receiverList.removeAll(superGrilList);
if (CollectionUtils.isEmpty(receiverList)){
log.info("[brave] uid {}, all of superGril, multi {}, needTicketNum {} superNum {} superGrilList {}",