From 8b4c8fa8a2e3d00c231ac6d2c08bcb0a735d52f2 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 13 三月 2026 17:30:57 +0800
Subject: [PATCH] 16 卡牌服务端(同步中心数据增加ClientVersion信息;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py
index baeeedf..121cb33 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py
@@ -73,7 +73,7 @@
if len(inputList) != 2:
return
gmLV = GameWorld.ToIntDef(inputList[1])
- playerPF = GameWorld.GetPlatform()
+ playerPF = GameWorld.GetAppID()
# curIP = curPlayer.GetIP()
# if (curIP.find('10.30.') == 0 or curIP.find('192.168.') == 0) and playerPF == "173on_lan":
#测试修改
@@ -231,6 +231,11 @@
GameWorld.Log("OnSSGMCMD cmdStr=%s,fromServerID=%s" % (cmdStr, fromServerID), playerID)
crossPlayer = CrossPlayer.GetCrossPlayerMgr().FindCrossPlayer(playerID)
if not crossPlayer:
+ if GameWorld.IsCrossCenter():
+ GameWorld.ErrLog("跨服中心找不到crossPlayer!直接注册", playerID)
+ crossPlayer = CrossPlayer.GetCrossPlayerMgr().RegistPlayer(playerID) # 跨服中心不存在该玩家,直接注册
+ crossPlayer.SetMainServerID(fromServerID)
+ if not crossPlayer:
GameWorld.ErrLog("本服找不到crossPlayer!", playerID)
return
cmdList = eval(cmdStr)
--
Gitblit v1.8.0