锦标赛增加日志

This commit is contained in:
hahwu 2026-04-16 15:33:25 +08:00
parent 4370238f94
commit f9ef827559

View File

@ -111,7 +111,7 @@ func (c *ChampshipMgr) Init() {
c.ZeroUpdate()
})
dispterTimer["zero"] = t
log.Debug("ChampshipMgr init success, activity endtime:%d, now:%d, remain:%d, next zero update time:%s", activityCfg.Endtime, now, activityCfg.Endtime-now, GoUtil.FormatTime(activityCfg.Endtime))
remain := now - zeroTime
remain1 := 1800 - remain%1800
@ -245,6 +245,8 @@ func (c *ChampshipMgr) ZeroUpdate() (interface{}, error) {
c.ZeroUpdate()
})
dispterTimer["zero"] = t
now := GoUtil.Now()
log.Debug("ChampshipMgr init success, activity endtime:%d, now:%d, remain:%d, next zero update time:%s", activityCfg.Endtime, now, activityCfg.Endtime-now, GoUtil.FormatTime(activityCfg.Endtime))
c.mDispatr.AfterFunc(time.Duration(timeDuration+1800)*time.Second, func() {
c.ZeroNotifyAll()
})