From 5fbb5f807ca75fa69fba14ad2563892f08b4588d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 10 二月 2026 18:28:22 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(修复改名没有同步更新名字映射关系bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCache.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCache.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCache.py
index 1ba03a5..ab10733 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCache.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCache.py
@@ -532,7 +532,7 @@
tagServerID = clientPack.ServerID
# 本服或主服是本服
- if not tagServerID or tagServerID == GameWorld.GetGameWorld().GetServerID():
+ if not tagServerID or tagServerID == GameWorld.GetGameWorld().GetServerID() or playerID < ShareDefine.RealPlayerIDStart:
NetPackCommon.SendFakePack(curPlayer, GetPack_ViewCache(tagPlayerID))
return
@@ -565,10 +565,15 @@
clientPack.ServerID = curCache.GetServerID()
clientPack.FightPower = curCache.GetFightPower()
clientPack.FightPowerEx = curCache.GetFightPowerEx()
- clientPack.FamilyID = curCache.GetFamilyID()
+ familyID = curCache.GetFamilyID()
+ familyDataServerID = DBDataMgr.GetFamilyMgr().GetCurCrossServerID()
+ if familyDataServerID <= 0:
+ familyDataServerID = GameWorld.GetGameWorld().GetServerID() # 公会未跨服时默认就是玩家所在服
+ clientPack.FamilyID = familyID
clientPack.FamilyName = curCache.GetFamilyName()
clientPack.FamilyEmblemID = curCache.GetFamilyEmblemID()
clientPack.FamilyEmblemWord = curCache.GetFamilyEmblemWord()
+ clientPack.FamilyDataServerID = familyDataServerID
clientPack.PlusData = curCache.GetPlusData()
clientPack.PlusDataSize = len(clientPack.PlusData)
return clientPack
--
Gitblit v1.8.0