From c3157e52b794a43cbdab6e1dc4da5fbcf53fd753 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 26 九月 2022 19:00:34 +0800 Subject: [PATCH] 9701 【后端】【越南】【BT7】【主干】跨服竞技64位排位赛(优化多余分区存在的问题;多分区PK地图分配优化;排位状态异常后支持运行命令 ChampionshipErrorDo 返还未结算的投注;排位赛数据定时存档) --- ServerPython/CoreServerGroup/GameServer/Script/EventReport.py | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py b/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py index 083efde..2dbb565 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py @@ -38,6 +38,8 @@ import md5 import os import re +import urllib +import IpyGameDataPY EventFilepath = "D:\\EventServer\\PythonScribe\\EventLog\\" @@ -87,7 +89,15 @@ def EventReport(eventActionID, eventParam, curPlayer=None, OperatorID=""): # 组成例子 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 + if not curPlayer and not OperatorID: return @@ -121,7 +131,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(str(datetime.datetime.today()).split('.')[0]), eventParam) GameWorld.DebugLog("EventReport: %s"%getUrl) # 第五个参数0代表get发送 1代表post -- Gitblit v1.8.0