From 3bfd8f30dfce748438895ff0081fd059e17ec2ac Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Fri, 25 Oct 2024 10:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E8=B7=A8?= =?UTF-8?q?=E5=A4=A9=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/lotterymgr.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/worldsrv/lotterymgr.go b/worldsrv/lotterymgr.go index 8f54f54..89438be 100644 --- a/worldsrv/lotterymgr.go +++ b/worldsrv/lotterymgr.go @@ -438,8 +438,10 @@ func (l *LotteryMgr) Init() { ld := l.GetData(v.IdStr, d.CId) ld.LotteryData = d ld.Platform = v.IdStr - if !common.TsInSameDay(ld.StartTs, time.Now().Unix()) { - ld.Reset() + if l.PlatformConfig[v.IdStr] != nil { + if !common.TsInSameDay(ld.StartTs, time.Now().Unix()) && l.PlatformConfig[v.IdStr].IsCycle { + ld.Reset() + } } } }