竞技馆抽奖活动

This commit is contained in:
sk 2024-10-29 16:34:43 +08:00
parent c5a651c88d
commit 75b178ba3c
1 changed files with 4 additions and 0 deletions

View File

@ -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