Merge branch 'develop' of git.pogorockgames.com:mango-games/server/game into develop

This commit is contained in:
sk 2024-07-04 10:24:01 +08:00
commit 8de4b80458
1 changed files with 5 additions and 9 deletions

View File

@ -1625,16 +1625,12 @@ func (this *Tournament) Update() {
}
}
}
//零点清除每日库存数据
// 获取当前时间
nowTime := time.Now()
if nowTime.Hour() == 0 && nowTime.Minute() == 0 && nowTime.Second() == 0 {
}
func (this *Tournament) OnDayTimer() {
this.MatchAwardNum = make(map[string]map[int32]int32)
this.Save()
logger.Logger.Trace("比赛场每日库存清理!!!当前时间 %v", nowTime)
logger.Logger.Trace("比赛场每日库存清理!!!")
}
}
func (this *Tournament) Shutdown() {
// 保存数据
this.Save()