上传rpcx启动类型

This commit is contained in:
liwei1dao 2022-12-13 19:23:21 +08:00
parent d318cdf003
commit 024c6d2076

View File

@ -206,7 +206,7 @@ func stop() {
}
}
}
log.Errorf("stop succ!")
log.Infof("stop succ!")
}
///转换区服配置到服务配置
@ -294,12 +294,12 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
case comm.Service_Worker: //业务服务
sseting.Id = fmt.Sprintf("%s_%s%d", config.AreaId, comm.Service_Worker, id)
sseting.Type = comm.Service_Worker
sseting.Sys["rpcx"]["RpcxStartType"] = 0
sseting.Sys["rpcx"]["RpcxStartType"] = 2
break
case comm.Service_Mainte: //维护服务
sseting.Id = fmt.Sprintf("%s_%s", config.AreaId, comm.Service_Mainte)
sseting.Type = comm.Service_Mainte
sseting.Sys["rpcx"]["RpcxStartType"] = 0
sseting.Sys["rpcx"]["RpcxStartType"] = 2
sseting.Modules["web"] = map[string]interface{}{
"WebDir": "./dist",
"Port": lport,