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)) }