Compare commits

..

2 Commits

Author SHA1 Message Date
sk 2aff7b19fb Merge branch 'develop' of git.pogorockgames.com:mango-games/server/game into develop 2025-01-03 14:13:42 +08:00
sk e6baf7ef86 fix 红包活动 2025-01-03 14:12:23 +08:00
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)
}
}