From e6baf7ef864cee394a8f44dcc884efccad7c85f3 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Fri, 3 Jan 2025 14:12:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=BA=A2=E5=8C=85=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/welfmgr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldsrv/welfmgr.go b/worldsrv/welfmgr.go index 593a925..f764c15 100644 --- a/worldsrv/welfmgr.go +++ b/worldsrv/welfmgr.go @@ -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) } }