hch
2018-08-10 fc3f828885c48fba313a920beb9ea9000cfd9016
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
@@ -105,12 +105,11 @@
#  @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")
@@ -124,6 +123,8 @@
                          "AccountID": GameWorld.GetPlatformAccID(curPlayer.GetAccID()),
                          "IP": curPlayer.GetIP(),
                          "Level": curPlayer.GetLV()}) 
        OperatorID = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
    if eventParam:
        eventParam = "&%s"%eventParam