From 77b0f4f5acec30f9be8c7eeadfc25d9641ca26f3 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 26 五月 2025 11:46:13 +0800 Subject: [PATCH] 16 卡牌服务端(删除脱机挂) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py index 6fdfaca..3396ab3 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py @@ -41,7 +41,6 @@ import GameWorld import ChConfig import CommFunc -import PlayerTJG import datetime import random @@ -601,14 +600,11 @@ # 离线数据 def WriteEvent_session(curPlayer): seconds = 0 - if PlayerTJG.GetIsTJG(curPlayer): - return - else: - logoffTimeStr = curPlayer.GetLogoffTime().strip() - loginTimeStr = curPlayer.GetLoginTime().strip() - if logoffTimeStr and loginTimeStr: - passTimes = GameWorld.GetDateTimeByStr(logoffTimeStr) - GameWorld.GetDateTimeByStr(loginTimeStr) - seconds = passTimes.seconds + logoffTimeStr = curPlayer.GetLogoffTime().strip() + loginTimeStr = curPlayer.GetLoginTime().strip() + if logoffTimeStr and loginTimeStr: + passTimes = GameWorld.GetDateTimeByStr(logoffTimeStr) - GameWorld.GetDateTimeByStr(loginTimeStr) + seconds = passTimes.seconds EventReport(ShareDefine.Def_UserAction_Session, "OnlineTime=%s&SessionID=%s"%(seconds, GameWorld.GetSessionID(curPlayer)), curPlayer) #=========================================================================== # sessionEvent = session() -- Gitblit v1.8.0