上传战斗服启动开关
This commit is contained in:
parent
a125a9bf02
commit
a1e851c749
@ -18,6 +18,7 @@ type GameConfig struct {
|
||||
Gateways []string //网关服务["127.0.0.1:7895"]
|
||||
GatewayPorts []int //网关通信端口
|
||||
Workers []string //工作服
|
||||
BattleOpen bool //是否启用战斗
|
||||
BattleAddr string //战斗服地址
|
||||
}
|
||||
|
||||
|
@ -308,7 +308,7 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
|
||||
sseting.Sys["rpcx"]["RpcxStartType"] = 2
|
||||
if config.BattleAddr != "" {
|
||||
sseting.Modules["battle"] = map[string]interface{}{
|
||||
"OpenCheck": true,
|
||||
"OpenCheck": config.BattleOpen,
|
||||
"BattleServerAddr": config.BattleAddr,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user