From b00dae2f6043cf263b9f42f7ef24c6e2311f6345 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 01 七月 2022 16:37:46 +0800
Subject: [PATCH] 9537 【越南】服务器中心接口2(事件汇报优化: 如果配置仅汇报,则仅配置中的事件ID才汇报)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
index 3c8eaf7..c59b81f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
@@ -110,6 +110,10 @@
     # 组成例子 eventParam 的格式必须是 xx=yy&zz=cc
     #  "http://192.168.0.249:12000/event_receiver?EventID=3099&OperatorID=test&PlayerCount=102&Time=2018-02-08 18:30:30&ProductID=snxxz&RegionName=s1"
     
+    reportActionIDList = IpyGameDataPY.GetFuncEvalCfg("EventReport", 3)
+    if reportActionIDList and eventActionID not in reportActionIDList:
+        #GameWorld.DebugLog("非需要汇报的事件ID! %s" % eventActionID)
+        return
     if eventActionID in IpyGameDataPY.GetFuncEvalCfg("EventReport", 1):
         #GameWorld.DebugLog("不需要汇报的事件! %s" % eventActionID)
         return
@@ -128,7 +132,11 @@
                           "AccountID": GameWorld.GetPlatformAccID(curPlayer.GetAccID()),
                           "IP": curPlayer.GetIP(),
                           "Level": curPlayer.GetLV(),
-                          "DeviceFlag": curPlayer.GetAccountData().GetDeviceFlag()}) 
+                          "DeviceFlag": curPlayer.GetAccountData().GetDeviceFlag(),
+                          "Job": curPlayer.GetJob(),
+                          "PlayerID": curPlayer.GetPlayerID(),
+                          "CreateRoleTime": curPlayer.GetCreateRoleTime(),
+                          }) 
         
         OperatorID = GameWorld.GetPlayerPlatform(curPlayer)
         RegionName = GameWorld.GetPlayerServerSID(curPlayer)
@@ -148,7 +156,7 @@
     
     getUrl = "%s?ProductID=%s&OperatorID=%s&RegionName=%s&EventID=%s%s&Time=%s%s"%(\
              ReportUrl, ProductID, OperatorID, RegionName, eventActionID, playerInfo,
-             str(datetime.datetime.today()).split('.')[0], eventParam)
+             urllib.quote_plus(str(datetime.datetime.today()).split('.')[0]), eventParam)
     GameWorld.DebugLog("EventReport: %s"%getUrl)
     
     # 第五个参数0代表get发送  1代表post

--
Gitblit v1.8.0