From a1ea5474ffd2b081668f9a0cef8d069aa78db85d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 12 十二月 2025 20:53:42 +0800
Subject: [PATCH] 389 流向记录(战斗服务器不记录流向)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
index 0b7f4e6..3406937 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
@@ -120,7 +120,11 @@
 # @param dataDict: 事件字典
 # @return None
 def SendEventPack(eventTypeStr, dataDict, curPlayer=None):
-
+    
+    if GameWorld.IsBattleServer():
+        GameWorld.DebugLogEx("战斗服务器暂不做流向记录")
+        return
+    
     if curPlayer:
         if not GameWorld.IsNormalPlayer(curPlayer):
             return
@@ -181,6 +185,13 @@
     SendEventPack("LogInOut", dataDict, curPlayer)
     return
 
+def DR_OnlineTimeToday(curPlayer, onlineTime):
+    ## 今日累计在线时长
+    dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(), 
+                'AccID':curPlayer.GetAccID(), 'OnlineTime':onlineTime}
+    SendEventPack("OnlineTimeToday", dataDict)
+    return
+
 ## 新增第一次登陆
 #  @param accID: 账号ID
 #  @param ip: ip

--
Gitblit v1.8.0