From e6ac8a710225fe4898f0944d3b9d2a668b6e8c08 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 25 一月 2021 16:45:58 +0800 Subject: [PATCH] 8710 【开发】【主干】【BT2】根据世界等级配置奖励(成长必买支持按世界等级配置); --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py index 2459a6c..c150cd4 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py @@ -32,6 +32,7 @@ #"""Version = 2017-07-04 15:00""" #--------------------------------------------------------------------- +import IpyGameDataPY import IPY_GameWorld import DataRecordPack import PlayerControl @@ -108,6 +109,10 @@ 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" + + if eventActionID in IpyGameDataPY.GetFuncEvalCfg("EventReport", 1): + #GameWorld.DebugLog("不需要汇报的事件! %s" % eventActionID) + return if not curPlayer and not OperatorID: return @@ -668,6 +673,9 @@ #避免记录太多信息 if type_name in [IPY_GameWorld.TYPE_Price_Silver_Money] and abs(quantity * price) < ChConfig.Def_DRRecord_Min_Silver: return + if type_name not in IpyGameDataPY.GetFuncEvalCfg("EventReport", 2): + #GameWorld.DebugLog("该货币类型不需要汇报! type_name=%s" % type_name) + return # 标识此货币是否是一级货币(充值) Recharged = 1 if type_name == IPY_GameWorld.TYPE_Price_Gold_Money else 0 #=========================================================================== -- Gitblit v1.8.0