| | |
| | |
|
| | | ProductID = ReadChConfig.GetPyMongoConfig("EventReport", "ProductID")
|
| | | ReportUrl = ReadChConfig.GetPyMongoConfig("EventReport", "ReportUrl")
|
| | | RegionName = GameWorld.GetServerSID() # 需考虑合服情况
|
| | |
|
| | | playerInfo = ""
|
| | | if curPlayer:
|
| | |
| | | # "Level": curPlayer.GetLV()})
|
| | | #=======================================================================
|
| | | OperatorID = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
|
| | | |
| | | RegionName = GameWorld.GetPlayerServerSID(curPlayer)
|
| | | |
| | | else:
|
| | | # 合服情况,玩家取自己服发送,非玩家数据按指定平台配置发,没有则取配置主服
|
| | | RegionName = 's%s'%GameWorld.GetPlayerMainServerID(OperatorID) |
| | | |
| | | 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], eventParam)
|