From 8fcd812986377d3d23f1dc8293a1a041e1a2994e Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 21 Sep 2022 16:14:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0cmd=20=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/gm.json | 4 +++- comm/gameconfig.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/gm.json b/bin/gm.json index 008a32e04..5c8ef9ed1 100644 --- a/bin/gm.json +++ b/bin/gm.json @@ -1,6 +1,8 @@ { "AreaId": "dfli01", - "ConsulAddr": "10.0.0.9:10012", + "ConsulAddr": [ + "10.0.0.9:10012" + ], "IsCross": false, "BelongCrossServerId": "dflicross01", "LoaclDB": { diff --git a/comm/gameconfig.go b/comm/gameconfig.go index 27c975ffd..93ffcf744 100644 --- a/comm/gameconfig.go +++ b/comm/gameconfig.go @@ -3,7 +3,7 @@ package comm //游戏区服配置 type GameConfig struct { AreaId string //区服id 每个区服id都必须是唯一 - ConsulAddr string //区服Consul + ConsulAddr []string //区服Consul IsCross bool ///是否是跨区区服 BelongCrossServerId string //所属跨服Id (区服id) 不是跨服区服才有效 LoaclDB *DBConfig //本地db