Compare commits

..

No commits in common. "0ccfff81de0fddc58011651e95e5a2f745bf6b27" and "19d8ed6cc58d769f06103983d1f2e7b8ba757b87" have entirely different histories.

8 changed files with 8 additions and 2 deletions

View File

@ -42,6 +42,8 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopConsumer()
mq.StopPublisher()
return nil return nil
}) })
// module模块 // module模块

View File

@ -52,6 +52,7 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopPublisher()
return nil return nil
}) })
// module模块 // module模块

View File

@ -22,6 +22,7 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopPublisher()
return nil return nil
}) })
// module模块 // module模块

View File

@ -27,6 +27,7 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopPublisher()
return nil return nil
}) })
// module模块 // module模块

View File

@ -31,6 +31,7 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopConsumer()
return nil return nil
}) })
// module模块 // module模块

View File

@ -1956,7 +1956,6 @@ func CSPlayerData(s *netlib.Session, packetid int, data interface{}, sid int64)
p.TotalIn = 0 p.TotalIn = 0
p.TotalOut = 0 p.TotalOut = 0
p.PlayerTax = 0 p.PlayerTax = 0
p.dirty = true
} }
} }
} }

View File

@ -51,6 +51,8 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopPublisher()
mq.StopConsumer()
return nil return nil
}) })
//启动定时任务 //启动定时任务

View File

@ -654,7 +654,6 @@ func (this *Player) LoadMessage(lastLogoutTime int64, isFirstLogin, isSkipWeek b
} }
this.verifyMessage(maxTs) this.verifyMessage(maxTs)
} }
this.MessageShowRed()
} }
}), "GetMessage").StartByFixExecutor("logic_message") }), "GetMessage").StartByFixExecutor("logic_message")
} }