diff --git a/worldsrv/lotterymgr.go b/worldsrv/lotterymgr.go index 680e5bf..70236b2 100644 --- a/worldsrv/lotterymgr.go +++ b/worldsrv/lotterymgr.go @@ -224,7 +224,7 @@ func (l *LotteryData) Done() { l.isDone = true now := time.Now() - if l.EndTs <= 0 || l.EndTs >= now.Unix() || l.SnId > 0 || now.Unix()-l.EndTs > 5*60 { + if l.EndTs <= 0 || l.EndTs >= now.Unix() || l.WinCode != "" || now.Unix()-l.EndTs > 5*60 { l.isDone = false return } diff --git a/worldsrv/welfmgr.go b/worldsrv/welfmgr.go index 1cb2fd8..231a27d 100644 --- a/worldsrv/welfmgr.go +++ b/worldsrv/welfmgr.go @@ -1531,7 +1531,6 @@ func (this *WelfareMgr) ContinuousPayInfo(p *Player) { pack.Day = day pack.Cycle = continuousPay.Cycle for _, v := range continuousPay.List { - data := &welfare.WelfareSpree{ Day: v.Day, // VIPEX: v.VIPEX,