From cdb001b8065cf4bcfe63b82bf8c03ae48b362e7b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 19 三月 2026 12:02:09 +0800
Subject: [PATCH] 493 【活动内容】武将登场-服务端(招募武将非首次获得不广播设定仅针对常规招募;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
index 0829142..9dcf009 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
@@ -59,17 +59,18 @@
 #  @param eventParam 事件参数
 #  @param curPlayer 
 #  @return None
-def EventReport(eventActionID, eventParam, curPlayer=None, OperatorID=""):
+def EventReport(eventActionID, eventParam, curPlayer=None, OperatorID="", checkNeed=True):
     # 组成例子 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 checkNeed:
+        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

--
Gitblit v1.8.0