77 红包 bug修改。
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
// 继续执行定时任务
|
||||
|
||||
Reference in New Issue
Block a user