From 4082fc11f2bc08f2b06425fdc38aaf8f49f29967 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Thu, 31 Oct 2024 11:10:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E5=BC=80?= =?UTF-8?q?=E5=A5=96=E5=89=A9=E4=BD=99=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/lotterymgr.go | 2 +- worldsrv/welfmgr.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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,