77 红包 bug修改。

This commit is contained in:
2025-12-22 16:46:54 +08:00
parent e3744843d9
commit 435d2084d1
2 changed files with 46 additions and 46 deletions

View File

@@ -152,7 +152,6 @@ public class QXRedPacketManager {
for (RedPacketInfo packet : packets) {
long packetTime = packet.remainingTime();
LogUtils.e("红包剩余时间:" + packet.getRedpacket_time());
long redpacketTime = 0;
try {
if (packet.getRedpacket_time() != null) {
@@ -161,10 +160,7 @@ public class QXRedPacketManager {
} catch (NumberFormatException e) {
LogUtils.e("红包时间格式错误: " + packet.getRedpacket_time());
}
if (packetTime <= -redpacketTime) {
removeRedPacket(packet.getRedpacket_id());
}
if (packet.getCountdown()==0){
continue;
}
@@ -182,6 +178,10 @@ public class QXRedPacketManager {
((QXRedPacketManagerDelegate) this.delegate).onRedPacketUpdated(packet, this.redPackets.size());
}
}
if (packetTime <= 0) {
removeRedPacket(packet.getRedpacket_id());
}
}
// 继续执行定时任务