From c280ced8be799a899efc78b21cc807d435ab6609 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 10 二月 2026 19:34:03 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(退出公会时间根据当前是否互通取对应的本服或跨服时间;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnWeek.py |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnWeek.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnWeek.py
index c37ae06..fe51eba 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnWeek.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnWeek.py
@@ -18,12 +18,20 @@
 import GameWorld
 import PlayerEventCounter
 import GameWorldEvent
+import CrossMgr
+
+def GetGMServerIDList(curPlayer):
+    ## 获取命令额外发送到其他服务器,如跨服
+    centerID = CrossMgr.GetSSServerMgr().GetCrossCenterID()
+    return [centerID] if centerID else []
+
+def OnExecCross(crossPlayer, gmList):
+    GameWorldEvent.OnGM_CrossCenterEvent("GMOnWeek")
+    return
 
 def OnExec(curPlayer, gmList):
     __DoExec(GameWorld.GetGameWorld().GetTick())
-    
-    # 暂时同步GameServer,之后可去除
-    return True
+    return
 
 def __DoExec(tick):
     playerManager = GameWorld.GetPlayerManager()

--
Gitblit v1.8.0