From 30d3d0236c1b4e1338209e9049e5ef07e87fff87 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 07 一月 2025 19:53:30 +0800
Subject: [PATCH] 10334 【越南】【英语】【BT】【砍树】境界修改-服务端(杀怪任务进度增加支持A2 25 客户端任务计数 # tagCMClientTaskCount)

---
 ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_CrossClientServerMaintain.py |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_CrossClientServerMaintain.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_CrossClientServerMaintain.py
index c76cf70..3ae54e7 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_CrossClientServerMaintain.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_CrossClientServerMaintain.py
@@ -18,6 +18,7 @@
 import ShareDefine
 import DataRecordPack
 import CrossRealmMsg
+import ReadChConfig
 import GameWorld
 import GMCommon
 
@@ -33,15 +34,16 @@
     GameWorld.Log("GMT_CrossClientServerMaintain gmCmdDict=%s" % str(gmCmdDict))
     operate = gmCmdDict.get('operate', '')
     
-    strMsg = ""
+    strMsg = {"operate":operate}
     if GameWorld.IsCrossServer():
-        strMsg = "this server is cross server. can not do!"
+        strMsg.update({"error":1})
         
     # 查询跨服状态
     elif operate == "cross_server_state":
+        crossServerIP = ReadChConfig.GetPyMongoConfig("Merge", "MergeServerIP")
         isOpen = GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_CrossServerOpen)
         isConn = GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_CrossServerConnState)
-        strMsg = {"OpenState":isOpen, "ConnState":isConn}
+        strMsg.update({"OpenState":isOpen, "ConnState":isConn, "CrossServerIP":crossServerIP})
         
     # 查询跨服PK状态        
     elif operate == "cross_pk_state":
@@ -51,11 +53,12 @@
         seasonState = gameWorld.GetDictByKey(ShareDefine.Def_Notify_WorldKey_CrossPKSeasonState)
         matchState = gameWorld.GetDictByKey(ShareDefine.Def_Notify_WorldKey_CrossDailyActionState % ShareDefine.DailyActionID_CrossReamPK)
         
-        strMsg = {"GroupID":GameWorld.GetServerGroupID(), "ZoneID":zoneID, "SeasonID":seasonID, "SeasonState":seasonState, "MatchState":matchState}
+        strMsg.update({"GroupID":GameWorld.GetServerGroupID(), "ZoneID":zoneID, "SeasonID":seasonID, "SeasonState":seasonState, "MatchState":matchState})
         
     # 重新同步跨服状态
     elif operate == "reconn_cross_Server":
         CrossRealmMsg.OnGameServerInitOK()
+        strMsg.update({"OK":1})
         
     else:
         GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_ParamErr)

--
Gitblit v1.8.0