From 05a5b5237b0774484ae48f75cbdcbfe0bf7356fa Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Thu, 16 Apr 2026 15:52:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/champship_mgr.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/game/champship_mgr.go b/src/server/game/champship_mgr.go index de8d0498..66b86e33 100644 --- a/src/server/game/champship_mgr.go +++ b/src/server/game/champship_mgr.go @@ -190,14 +190,19 @@ func (c *ChampshipMgr) ReloadActivity() { log.Debug("championship reload activity failed, no active, aid:%d", activityCfg.AId) return } + log.Debug("step1") t := dispterTimer["zero"] if t != nil { t.Stop() } + log.Debug("step2") + timeDuration := activityCfg.Endtime - GoUtil.Now() t = c.mDispatr.AfterFunc(time.Duration(timeDuration)*time.Second, func() { c.ZeroUpdate() }) + log.Debug("step3") + dispterTimer["zero"] = t log.Debug("ChampshipMgr reload activity success, activity endtime:%d, now:%d, remain:%d, next zero update time:%s", activityCfg.Endtime, GoUtil.Now(), activityCfg.Endtime-GoUtil.Now(), GoUtil.FormatTime(activityCfg.Endtime)) }