From 38ed135a72f9d4f35c6979b815aaa084e12f441f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 27 九月 2024 18:39:59 +0800
Subject: [PATCH] 1111 登录事件1100汇报ClientVersion增加url编码;
---
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py | 35 +++++++++++++++++++----------------
1 files changed, 19 insertions(+), 16 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py
index 5d32d76..cde4295 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py
@@ -204,22 +204,23 @@
"LV":cacheDict["LV"],
"RealmLV":cacheDict["RealmLV"],
}
- if "PlayerID" in exAttrs:
- shotCacheDict["PlayerID"] = playerID
- if "FightPower" in exAttrs:
- shotCacheDict["FightPower"] = cacheDict["FightPower"]
- if "ServerID" in exAttrs:
- shotCacheDict["ServerID"] = GameWorld.GetAccIDServerID(cacheDict["AccID"])
- if "OfflineValue" in exAttrs:
- olMgr = ChPlayer.GetOnlinePlayerMgr()
- shotCacheDict["OfflineValue"] = olMgr.GetOfflineValue(playerID, viewCache)
- # 附带外观模型展示相关
- if "Model" in exAttrs:
- shotCacheDict.update({
- "TitleID":cacheDict.get("TitleID", 0),
- "EquipShowSwitch":cacheDict.get("EquipShowSwitch", 0),
- "EquipShowID":cacheDict.get("EquipShowID", []),
- })
+ for attrName in exAttrs:
+ if attrName == "PlayerID":
+ shotCacheDict["PlayerID"] = playerID
+ elif attrName == "ServerID":
+ shotCacheDict["ServerID"] = GameWorld.GetAccIDServerID(cacheDict["AccID"])
+ elif attrName == "OfflineValue":
+ olMgr = ChPlayer.GetOnlinePlayerMgr()
+ shotCacheDict["OfflineValue"] = olMgr.GetOfflineValue(playerID, viewCache)
+ # 附带外观模型展示相关
+ elif attrName == "Model":
+ shotCacheDict.update({
+ "TitleID":cacheDict.get("TitleID", 0),
+ "EquipShowSwitch":cacheDict.get("EquipShowSwitch", 0),
+ "EquipShowID":cacheDict.get("EquipShowID", []),
+ })
+ elif attrName in cacheDict:
+ shotCacheDict[attrName] = cacheDict[attrName]
return shotCacheDict
def GetSyncCrossCacheBase(curPlayer):
@@ -233,6 +234,8 @@
"Job":curPlayer.GetJob(),
"VIPLV":curPlayer.GetVIPLv(),
"Name":CrossRealmPlayer.GetCrossPlayerName(curPlayer),
+ "Face":curPlayer.GetFace(),
+ "FacePic":curPlayer.GetFacePic(),
"FamilyID":curPlayer.GetFamilyID(),
"FamilyName":cacheDict.get("FamilyName", ""),
"TitleID":cacheDict.get("TitleID", 0),
--
Gitblit v1.8.0