fix 红包活动
This commit is contained in:
parent
03ac53b7e8
commit
e6baf7ef86
|
@ -2281,7 +2281,7 @@ func (this *WelfareMgr) SendRedPacketInfo(p *Player) *welfare.SCRedPacketInfo {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
startTs, endTs := common.IntToTime(int(v.GetStartHMS())).Unix(), common.IntToTime(int(v.GetEndHMS())).Unix()
|
startTs, endTs := common.IntToTime(int(v.GetStartHMS())).Unix(), common.IntToTime(int(v.GetEndHMS())).Unix()
|
||||||
if now < startTs || now >= endTs {
|
if now >= endTs {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
info := &welfare.RedPacketInfo{
|
info := &welfare.RedPacketInfo{
|
||||||
|
@ -2296,7 +2296,7 @@ func (this *WelfareMgr) SendRedPacketInfo(p *Player) *welfare.SCRedPacketInfo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_, info.RemainCount = RedPacketMgrInst.GetRemainTimesByConfig(p, v)
|
_, info.RemainCount = RedPacketMgrInst.GetRemainTimesByConfig(p, v)
|
||||||
if info.RemainCount > 0 {
|
if info.RemainCount > 0 || info.RemainCount == -1 {
|
||||||
pack.Info = append(pack.Info, info)
|
pack.Info = append(pack.Info, info)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue