From 35d98e9c630fd4408561c8c54b4c09193bb9ce9e Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 20 三月 2026 14:57:32 +0800
Subject: [PATCH] 0312 修改服务端补主线进度通知
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py | 18 ++++++++++--------
1 files changed, 10 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 d5cecfa..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
@@ -86,6 +87,7 @@
"IP": curPlayer.GetIP(),
"Level": curPlayer.GetLV(),
"DeviceFlag": curPlayer.GetAccountData().GetDeviceFlag(),
+ "ClientVersion":curPlayer.GetAccountData().GetClientVersion(),
"Job": curPlayer.GetJob(),
"PlayerID": curPlayer.GetPlayerID(),
"CreateRoleTime": curPlayer.GetCreateRoleTime(),
--
Gitblit v1.8.0