From c3bbd3b0263fc6c2127cd9f072f497f46f98758b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 07 二月 2026 21:43:20 +0800
Subject: [PATCH] 389 流向记录(简化战斗流向记录,只统计出场的武将ID;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py |   43 +++++++++++++++++++++++++------------------
 1 files changed, 25 insertions(+), 18 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
index 1c55019..d5cecfa 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
@@ -32,6 +32,8 @@
 #"""Version = 2017-07-04 15:00"""
 #---------------------------------------------------------------------
 
+import ChConfig
+import PlayerControl
 import IpyGameDataPY
 import ReadChConfig
 import ShareDefine
@@ -79,28 +81,32 @@
     if curPlayer:
         if not GameWorld.IsNormalPlayer(curPlayer):
             return
-        #UTF8 需要转成url编码才可用
-        playerInfo = urllib.urlencode({"RoleID": curPlayer.GetName(),
-                          "AccountID": GameWorld.GetPlatformAccID(curPlayer.GetAccID()),
-                          "IP": curPlayer.GetIP(),
-                          "Level": curPlayer.GetLV(),
-                          "DeviceFlag": curPlayer.GetAccountData().GetDeviceFlag(),
-                          "Job": curPlayer.GetJob(),
-                          "PlayerID": curPlayer.GetPlayerID(),
-                          "CreateRoleTime": curPlayer.GetCreateRoleTime(),
-                          }) 
-        
+        playerInfo = {"RoleID": curPlayer.GetName(),
+                      "AccountID": GameWorld.GetPlatformAccID(curPlayer.GetAccID()),
+                      "IP": curPlayer.GetIP(),
+                      "Level": curPlayer.GetLV(),
+                      "DeviceFlag": curPlayer.GetAccountData().GetDeviceFlag(),
+                      "Job": curPlayer.GetJob(),
+                      "PlayerID": curPlayer.GetPlayerID(),
+                      "CreateRoleTime": curPlayer.GetCreateRoleTime(),
+                      "CTGRealTotal": curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CTGRealTotal),
+                      "FightPower": PlayerControl.GetFightPower(curPlayer),
+                      "MainTaskID": PlayerControl.GetMainTaskID(curPlayer),
+                      "MainPassLVID": PlayerControl.GetPassMainLevelID(curPlayer),
+                      "FamilyName": curPlayer.GetFamilyName(),
+                      "ReamlLV":curPlayer.GetOfficialRank(),
+                      "TreeLV":curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TreeLV),
+                      }
+        for mapID in ChConfig.ReportCenterMapIDList:
+            playerInfo["FBPass%s" % mapID] = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FBPassLineID % mapID)
+            
         OperatorID = GameWorld.GetPlayerPlatform(curPlayer)
         RegionName = GameWorld.GetPlayerServerSID(curPlayer)
-        playerInfo = "&%s"%playerInfo
+        playerInfo = "&%s" % urllib.urlencode(playerInfo) #UTF8 需要转成url编码才可用
         
     else:
-        # 合服情况,玩家取自己服发送,非玩家数据按指定平台配置发
-        sid = GameWorld.GetPlayerMainServerID(OperatorID)
-        if not sid:
-            GameWorld.ErrLog("GetPlayerMainServerID: %s-%s"%(OperatorID, sid))
-            return
-        RegionName = 's%s'%sid
+        serverID = GameWorld.GetGameWorld().GetServerID()
+        RegionName = 's%s'%serverID
 
     if eventParam:
         eventParam = "&%s"%eventParam
@@ -114,6 +120,7 @@
     # 第五个参数0代表get发送  1代表post
     GameWorld.GetGameWorld().EventReport_EventReport("", "", "", "", 0, getUrl)
     return
+
 ## =================================================================================================
     
 def WriteEvent_login(curPlayer):

--
Gitblit v1.8.0