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