上传cmd 升级
This commit is contained in:
parent
6655e8556f
commit
ceeae6f6a1
@ -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 //工作服
|
||||||
|
BattleAddr string //战斗服地址
|
||||||
}
|
}
|
||||||
|
|
||||||
//区服db配置
|
//区服db配置
|
||||||
|
@ -306,6 +306,12 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
|
|||||||
sseting.Id = fmt.Sprintf("%s_%s%d", config.AreaId, comm.Service_Worker, id)
|
sseting.Id = fmt.Sprintf("%s_%s%d", config.AreaId, comm.Service_Worker, id)
|
||||||
sseting.Type = comm.Service_Worker
|
sseting.Type = comm.Service_Worker
|
||||||
sseting.Sys["rpcx"]["RpcxStartType"] = 2
|
sseting.Sys["rpcx"]["RpcxStartType"] = 2
|
||||||
|
if config.BattleAddr != "" {
|
||||||
|
sseting.Modules["battle"]["OpenCheck"] = true
|
||||||
|
sseting.Modules["battle"]["BattleServerAddr"] = config.BattleAddr
|
||||||
|
} else {
|
||||||
|
sseting.Modules["battle"]["OpenCheck"] = false
|
||||||
|
}
|
||||||
break
|
break
|
||||||
case comm.Service_Mainte: //维护服务
|
case comm.Service_Mainte: //维护服务
|
||||||
sseting.Id = fmt.Sprintf("%s_%s", config.AreaId, comm.Service_Mainte)
|
sseting.Id = fmt.Sprintf("%s_%s", config.AreaId, comm.Service_Mainte)
|
||||||
|
Loading…
Reference in New Issue
Block a user