From eb75682a1fd5f23b6e5cca8cf3bcb6978c9b19cc Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期四, 13 六月 2019 10:16:49 +0800 Subject: [PATCH] 7203 周卡月卡广播 --- ServerPython/CoreServerGroup/GameServer/Script/EventReport.py | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py b/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py index 0f40ced..083efde 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py @@ -96,8 +96,8 @@ playerInfo = "" if curPlayer: - playerInfo = "&AccountID=%s&IP=%s"%(GameWorld.GetPlatformAccID(curPlayer.GetAccID()), - curPlayer.GetIP()) + playerInfo = "&AccountID=%s&IP=%s&DeviceFlag=%s"%(GameWorld.GetPlatformAccID(curPlayer.GetAccID()), + curPlayer.GetIP(), curPlayer.GetDeviceFlag()) #======================================================================= # #UTF8 需要转成url编码才可用 # playerInfo = urllib.urlencode({"RoleID": curPlayer.GetName(), @@ -116,9 +116,12 @@ return RegionName = 's%s'%sid - getUrl = "%s?ProductID=%s&OperatorID=%s&RegionName=%s&EventID=%s%s&Time=%s&DeviceFlag=%s&%s"%(\ + if eventParam: + eventParam = "&%s"%eventParam + + 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], curPlayer.GetDeviceFlag(), eventParam) + str(datetime.datetime.today()).split('.')[0], eventParam) GameWorld.DebugLog("EventReport: %s"%getUrl) # 第五个参数0代表get发送 1代表post -- Gitblit v1.8.0