From 9d5ec7599f3abe0cebb76ce1df3c3b8c4e0aa51e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 10 二月 2026 11:40:15 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(跨服聊天;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBPlayerViewCache.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBPlayerViewCache.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBPlayerViewCache.py
index b05164f..66e4296 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBPlayerViewCache.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBPlayerViewCache.py
@@ -21,6 +21,7 @@
 import ShareDefine
 import CommFunc
 import ChConfig
+import time
 
 class PlayerViewCache():
     
@@ -47,6 +48,8 @@
     def SetFacePic(self, facePic): self.__dbData.FacePic = facePic
     def GetModelMark(self): return self.__dbData.ModelMark
     def SetModelMark(self, modelMark): self.__dbData.ModelMark = modelMark
+    def GetEquipShowSwitch(self): return self.__dbData.EquipShowSwitch
+    def SetEquipShowSwitch(self, equipShowSwitch): self.__dbData.EquipShowSwitch = equipShowSwitch
     def GetFamilyID(self): return self.__dbData.FamilyID
     def SetFamilyID(self, familyID): self.__dbData.FamilyID = familyID
     def GetFamilyName(self): return self.__dbData.FamilyName
@@ -95,6 +98,8 @@
         if playerID in self.__viewCacheDict:
             return
         viewCache = PlayerViewCache(dbData)
+        if not viewCache.GetOffTime(): # 无值时默认离线时间为当前,适用于机器人、假人、重启加载数据时修正异常在线状态
+            viewCache.SetOffTime(int(time.time()))
         self.__viewCacheList.append(viewCache)
         self.__viewCacheDict[playerID] = viewCache
         self.__needSort = True

--
Gitblit v1.8.0