| | |
| | | # @param eventParam 事件参数
|
| | | # @param curPlayer
|
| | | # @return None
|
| | | def EventReport(eventActionID, eventParam, curPlayer=None):
|
| | | def EventReport(eventActionID, eventParam, curPlayer=None, OperatorID=""):
|
| | | # 组成例子 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"
|
| | |
|
| | | OperatorID = GameWorld.GetPlatform()
|
| | | if not OperatorID:
|
| | | if not curPlayer and not OperatorID:
|
| | | return
|
| | |
|
| | | ProductID = ReadChConfig.GetPyMongoConfig("EventReport", "ProductID")
|
| | |
| | | "AccountID": GameWorld.GetPlatformAccID(curPlayer.GetAccID()),
|
| | | "IP": curPlayer.GetIP(),
|
| | | "Level": curPlayer.GetLV()})
|
| | | |
| | | OperatorID = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
|
| | |
|
| | | if eventParam:
|
| | | eventParam = "&%s"%eventParam
|