Merge branch 'develop' of git.pogorockgames.com:mango-games/server/game into develop
This commit is contained in:
commit
8de4b80458
|
|
@ -1625,16 +1625,12 @@ func (this *Tournament) Update() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//零点清除每日库存数据
|
}
|
||||||
// 获取当前时间
|
func (this *Tournament) OnDayTimer() {
|
||||||
nowTime := time.Now()
|
|
||||||
if nowTime.Hour() == 0 && nowTime.Minute() == 0 && nowTime.Second() == 0 {
|
|
||||||
this.MatchAwardNum = make(map[string]map[int32]int32)
|
this.MatchAwardNum = make(map[string]map[int32]int32)
|
||||||
this.Save()
|
this.Save()
|
||||||
logger.Logger.Trace("比赛场每日库存清理!!!当前时间 %v", nowTime)
|
logger.Logger.Trace("比赛场每日库存清理!!!")
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Tournament) Shutdown() {
|
func (this *Tournament) Shutdown() {
|
||||||
// 保存数据
|
// 保存数据
|
||||||
this.Save()
|
this.Save()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue