上传战斗服启动开关

This commit is contained in:
liwei1dao 2023-09-08 17:03:14 +08:00
parent a125a9bf02
commit a1e851c749
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ type GameConfig struct {
Gateways []string //网关服务["127.0.0.1:7895"] Gateways []string //网关服务["127.0.0.1:7895"]
GatewayPorts []int //网关通信端口 GatewayPorts []int //网关通信端口
Workers []string //工作服 Workers []string //工作服
BattleOpen bool //是否启用战斗
BattleAddr string //战斗服地址 BattleAddr string //战斗服地址
} }

View File

@ -308,7 +308,7 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
sseting.Sys["rpcx"]["RpcxStartType"] = 2 sseting.Sys["rpcx"]["RpcxStartType"] = 2
if config.BattleAddr != "" { if config.BattleAddr != "" {
sseting.Modules["battle"] = map[string]interface{}{ sseting.Modules["battle"] = map[string]interface{}{
"OpenCheck": true, "OpenCheck": config.BattleOpen,
"BattleServerAddr": config.BattleAddr, "BattleServerAddr": config.BattleAddr,
} }