fix 红包活动

This commit is contained in:
sk 2025-01-03 14:12:23 +08:00
parent 03ac53b7e8
commit e6baf7ef86
1 changed files with 2 additions and 2 deletions

View File

@ -2281,7 +2281,7 @@ func (this *WelfareMgr) SendRedPacketInfo(p *Player) *welfare.SCRedPacketInfo {
continue
}
startTs, endTs := common.IntToTime(int(v.GetStartHMS())).Unix(), common.IntToTime(int(v.GetEndHMS())).Unix()
if now < startTs || now >= endTs {
if now >= endTs {
continue
}
info := &welfare.RedPacketInfo{
@ -2296,7 +2296,7 @@ func (this *WelfareMgr) SendRedPacketInfo(p *Player) *welfare.SCRedPacketInfo {
}
}
_, info.RemainCount = RedPacketMgrInst.GetRemainTimesByConfig(p, v)
if info.RemainCount > 0 {
if info.RemainCount > 0 || info.RemainCount == -1 {
pack.Info = append(pack.Info, info)
}
}