no message

This commit is contained in:
sk 2024-09-27 14:08:49 +08:00
parent 2ed8885e18
commit 3519bedc03
1 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import (
"mongo.games.com/goserver/core/logger"
"mongo.games.com/game/common"
"mongo.games.com/game/model"
"mongo.games.com/game/protocol/server"
)
@ -11,7 +12,9 @@ func init() {
common.RegisterServerCtrlCallback(func(msg *server.ServerCtrl) {
switch msg.GetCtrlCode() {
case common.SrvCtrlStateSwitchCode:
common.SrvIsMaintaining = !common.SrvIsMaintaining
if model.GameParamData.SrvMaintain {
common.SrvIsMaintaining = !common.SrvIsMaintaining
}
default:
logger.Logger.Errorf("unknown server ctrl code:%d", msg.GetCtrlCode())