| | |
| | |
|
| | | 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(),
|
| | |
| | | if eventParam:
|
| | | eventParam = "&%s"%eventParam
|
| | |
|
| | | getUrl = "%s?ProductID=%s&OperatorID=%s&RegionName=%s&EventID=%s%s&Time=%s&DeviceFlag=%s%s"%(\
|
| | | 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
|
| | |
| | | playerInfo = urllib.urlencode({"RoleID": curPlayer.GetName(),
|
| | | "AccountID": GameWorld.GetPlatformAccID(curPlayer.GetAccID()),
|
| | | "IP": curPlayer.GetIP(),
|
| | | "Level": curPlayer.GetLV()}) |
| | | "Level": curPlayer.GetLV(),
|
| | | "DeviceFlag": curPlayer.GetAccountData().GetDeviceFlag()}) |
| | |
|
| | | OperatorID = GameWorld.GetPlayerPlatform(curPlayer)
|
| | | RegionName = GameWorld.GetPlayerServerSID(curPlayer)
|
| | | playerInfo = "&%s"%playerInfo
|
| | |
|
| | | else:
|
| | | # 合服情况,玩家取自己服发送,非玩家数据按指定平台配置发
|
| | |
| | | eventParam = "&%s"%eventParam
|
| | |
|
| | |
|
| | | getUrl = "%s?ProductID=%s&OperatorID=%s&RegionName=%s&EventID=%s&%s&Time=%s&DeviceFlag=%s%s"%(\
|
| | | 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.GetAccountData().GetDeviceFlag(), eventParam)
|
| | | str(datetime.datetime.today()).split('.')[0], eventParam)
|
| | | GameWorld.DebugLog("EventReport: %s"%getUrl)
|
| | |
|
| | | # 第五个参数0代表get发送 1代表post
|