锦标赛0点更新

This commit is contained in:
hahwu 2026-03-30 16:40:35 +08:00
parent 01ab2f794b
commit bb2fb03796

View File

@ -99,6 +99,10 @@ func (c *ChampshipMgr) Init() {
zeroTime := GoUtil.ZeroTimestamp()
if c.getData().ZeroTime != zeroTime {
c.ZeroUpdate()
} else {
c.mDispatr.AfterFunc(time.Duration(GoUtil.NextZeroTimestampDuration())*time.Second, func() {
c.ZeroUpdate()
})
}
remain := now - zeroTime
remain1 := 1800 - remain%1800
@ -110,10 +114,6 @@ func (c *ChampshipMgr) Init() {
c.mDispatr.AfterFunc(time.Duration(60)*time.Second, func() {
c.ai()
})
c.mDispatr.AfterFunc(time.Duration(GoUtil.NextZeroTimestampDuration())*time.Second, func() {
c.ZeroUpdate()
})
}
// 每天零点30分通知所有在线玩家领取奖励