From 75b178ba3c601fa2a1652045ede17b1722d7b888 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Tue, 29 Oct 2024 16:34:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E6=8A=80=E9=A6=86=E6=8A=BD=E5=A5=96?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/lotterymgr.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worldsrv/lotterymgr.go b/worldsrv/lotterymgr.go index cc8b20a..dc1153c 100644 --- a/worldsrv/lotterymgr.go +++ b/worldsrv/lotterymgr.go @@ -144,6 +144,10 @@ func (l *LotteryData) GetRemainCode() int { // 发奖 func (l *LotteryData) sendAward() { + if l.isDone { + return + } + now := time.Now() if l.WinTs <= 0 || l.WinTs >= now.Unix() || l.IsSend || l.WinCode == "" || l.SnId == 0 || now.Unix()-l.WinTs > 5*60 { return