From 61bae8814450e86b1851cb892086b7081a675ff1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 25 六月 2024 16:08:13 +0800
Subject: [PATCH] 10185 【越南】【港台】【主干】BOSS凭证修改

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py
index 917f241..d4ead59 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py
@@ -148,6 +148,8 @@
 
 def GetCachePropDataDict(curCache):
     ## 获取缓存基础属性字典信息
+    if not curCache:
+        return {}
     if not hasattr(curCache, "PropDataDict"):
         curCache.PropDataDict = {}
     if not curCache.PropDataDict and curCache.PropData:
@@ -192,12 +194,7 @@
         return
     curCache.LV = curPackData.PlayerLV
     curCache.OffTime = curPackData.OffTime
-    if isLogout:
-        curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(playerID)
-        if curPlayer:
-            curCache.GeTuiID = curPlayer.GetGeTuiClientID()
-            curCache.GeTuiIDSize = len(curCache.GeTuiID)
-            
+    
     curCache.PropDataDict = {} # 每次更新数据时,重置字典缓存,下次获取时重新eval缓存
     curCache.PropData = curPackData.PropData
     curCache.PropDataSize = curPackData.PropDataSize

--
Gitblit v1.8.0