竞标赛优化

This commit is contained in:
hahwu 2025-01-13 15:54:33 +08:00
parent c8fef28bc7
commit 1345d7d5e2
2 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ func (c *ChampshipMgr) Init() {
})
c.mDispatr.AfterFunc(time.Duration(GoUtil.NextZeroTimestampDuration())*time.Second, func() {
c.Send(&msg.Msg{
Type: msg.HANDLE_TYPE_CHAMPSHIP_ZERO,
Type: msg.SERVER_ZERO_UPDATE,
})
})
}
@ -126,7 +126,7 @@ func (c *ChampshipMgr) ZeroUpdate(m *msg.Msg) (interface{}, error) {
c.update = true
c.mDispatr.AfterFunc(time.Duration(GoUtil.NextZeroTimestampDuration())*time.Second, func() {
c.Send(&msg.Msg{
Type: msg.HANDLE_TYPE_CHAMPSHIP_ZERO,
Type: msg.SERVER_ZERO_UPDATE,
})
})
c.mDispatr.AfterFunc(time.Duration(1800)*time.Second, func() {

View File

@ -144,7 +144,7 @@ func ReqGmCommand(args []interface{}) error {
case "champshipZero":
G_GameLogicPtr.ChampshipMgrSend(&MsgMod.Msg{
Type: MsgMod.HANDLE_TYPE_CHAMPSHIP_ZERO,
Type: MsgMod.SERVER_ZERO_UPDATE,
})
case "addMail":
MailMod := player.PlayMod.getMailMod()