From a757b4bbf987f2ac8f92b836b53fda7e9d75e3d1 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Thu, 4 Jul 2024 09:55:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=94=E8=B5=9B=E5=9C=BA=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public | 2 +- worldsrv/tournament.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public b/public index 6c801ea..aef8c48 160000 --- a/public +++ b/public @@ -1 +1 @@ -Subproject commit 6c801eab0d99ba3c8878278677bb5ef17a1370bd +Subproject commit aef8c489a27508831d69b4f66dee10c5258abb92 diff --git a/worldsrv/tournament.go b/worldsrv/tournament.go index 3651c6e..06879c9 100644 --- a/worldsrv/tournament.go +++ b/worldsrv/tournament.go @@ -1630,6 +1630,7 @@ func (this *Tournament) Update() { nowTime := time.Now() if nowTime.Hour() == 0 && nowTime.Minute() == 0 && nowTime.Second() == 0 { this.MatchAwardNum = make(map[string]map[int32]int32) + this.Save() logger.Logger.Trace("比赛场每日库存清理!!!当前时间 %v", nowTime) } } @@ -1639,6 +1640,7 @@ func (this *Tournament) Shutdown() { this.Save() } func (this *Tournament) Save() { + logger.Logger.Info("保存比赛场每日奖励数据!!!!", this.MatchAwardNum) if this.MatchAwardNum == nil { return }