Compare commits

...

3 Commits

Author SHA1 Message Date
sk 5944345434 Merge branch 'develop' of git.pogorockgames.com:mango-games/server/game into develop 2024-10-29 16:45:03 +08:00
sk 5486a6abc3 update ci 2024-10-29 16:44:34 +08:00
sk 75b178ba3c 竞技馆抽奖活动 2024-10-29 16:34:43 +08:00
2 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,7 @@ stages:
variables:
ProjectPath: "mongo.games.com/game"
BetaBinPath: "/home/centos/game/"
BetaBinPath: "/home/centos/deploy/"
DevelopBinPath: "/home/game/"
default:

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