竞技馆抽奖活动
This commit is contained in:
parent
c5a651c88d
commit
75b178ba3c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue