From bb284affe6541fa85c492ce9af26b4ee35805aab Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 12 三月 2019 14:25:07 +0800 Subject: [PATCH] 6328 【后端】优化代码eval -- 玩家缓存数据提取常用字段 等级和最后一次发送时间 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py index 9384eae..fbe96b7 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py @@ -73,6 +73,7 @@ sendPack.PlusData = curPlayerPlusData sendPack.PlusDataSize = len(curPlayerPlusData) sendPack.IsLogouting = IsLogouting #通知本次同步是否下线前保存 + sendPack.OffTime = int(time.time()) # 最后一次发送即当做离线时间 NetPackCommon.SendPyPackToGameServer(sendPack) GameWorld.DebugLog('ViewCache### UpdateGameServerPlayerCache out') return @@ -106,7 +107,6 @@ curPlayerPropDict[ChConfig.Def_PDict_GeTuiSet] = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GeTuiSet) curPlayerPropDict[ChConfig.Def_PDict_NoGeTuiTime] = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_NoGeTuiTime) curPlayerPropDict['GeTuiClientID'] = curPlayer.GetAccountData().GetGeTuiClientID() - curPlayerPropDict['Time'] = int(time.time()) # 最后一次发送即当做离线时间 # 各类功能 BOSS次数, BOSS相关对应B.Boss信息.xlsx的CntMark # 封魔坛剩余次数 -- Gitblit v1.8.0