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() + } } } }