From 6a9883b425e53e714b9a930ec70b7544999611a6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 08 五月 2025 12:01:45 +0800
Subject: [PATCH] 16 卡牌服务端(db数据备档、加载;仙盟基础转到MapServer;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
index 4bc6a23..cdc027c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -89,6 +89,7 @@
 import PlayerTongTianLing
 import PlayerCrossRealmPK
 import FunctionNPCCommon
+import DBPlayerViewCache
 import PlayerGoldInvest
 import IPY_PlayerDefine
 import CrossRealmPlayer
@@ -1488,6 +1489,8 @@
     
     #玩家下线通知gameserver记录缓存(放在下线更新排行榜之后,方便Gameserver判断是否需要存入数据库中)
     PlayerViewCacheTube.OnPlayerLogOut(curPlayer, tick)
+    DBPlayerViewCache.OnPlayerLogout(curPlayer)
+    PlayerFamily.OnPlayerLogout(curPlayer)
     
     #玩家下线/玩家切换地图公用逻辑
     __PlayerLeaveServerLogic(curPlayer, tick, True)
@@ -7398,6 +7401,14 @@
 def GetFamilyEmblemID(curPlayer): return curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FamilyEmblemID)
 def SetFamilyEmblemID(curPlayer, emblemID): NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FamilyEmblemID, emblemID)
 
+# 仙盟职位,使用 GetReceivedSalary,因为FamilyMemberLV没有入库
+def GetFamilyMemberLV(curPlayer): return curPlayer.GetReceivedSalary()
+def SetFamilyMemberLV(curPlayer, fmLV):
+    #因为仙盟职位没有存DBPlayer,而跨服后又没有Family信息,所以这里做个存储,用于跨服用
+    curPlayer.SetReceivedSalary(fmLV)
+    curPlayer.SetFamilyMemberLV(fmLV) # 也同步设置该值,防止有些地方直接调用 curPlayer.GetFamilyMemberLV()
+    return
+
 # 仙盟事务速度加成
 def GetAffairSpeedPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_AffairSpeedPer)
 def SetAffairSpeedPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_AffairSpeedPer, value)

--
Gitblit v1.8.0