hch
2018-09-01 597f6350370aeea090967ac02f81e85d0385db22
3192 合服数据后台发送
3个文件已修改
23 ■■■■■ 已修改文件
ServerPython/CoreServerGroup/GameServer/Script/EventReport.py 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/EventReport.py
@@ -93,7 +93,6 @@
    ProductID = ReadChConfig.GetPyMongoConfig("EventReport", "ProductID")
    ReportUrl = ReadChConfig.GetPyMongoConfig("EventReport", "ReportUrl")
    RegionName = GameWorld.GetServerSID() # 需考虑合服情况
    
    playerInfo = ""
    if curPlayer:
@@ -107,7 +106,12 @@
        #                  "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)
ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
@@ -477,11 +477,9 @@
def GetPlayerMainServerID(accIDPlatform):
    # 玩家合服后所属主服ID
    # @param accIDPlatform: 玩家账号所属的平台
    #===========================================================================
    # mainServerID = ToIntDef(ReadChConfig.GetPyMongoConfig("platform", "%sMainServerID" % accIDPlatform), None)
    # if mainServerID != None:
    #    return mainServerID
    #===========================================================================
    mainServerID = ToIntDef(ReadChConfig.GetPyMongoConfig("platform", "%sMainServerID" % accIDPlatform), None)
    if mainServerID != None:
        return mainServerID
    return GetServerID()
##获取玩家所属平台
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
@@ -114,7 +114,7 @@
    ProductID = ReadChConfig.GetPyMongoConfig("EventReport", "ProductID")
    ReportUrl = ReadChConfig.GetPyMongoConfig("EventReport", "ReportUrl")
    RegionName = GameWorld.GetServerSID() # 需考虑合服情况
    
    playerInfo = ""
    if curPlayer:
@@ -125,6 +125,11 @@
                          "Level": curPlayer.GetLV()}) 
        
        OperatorID = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
        RegionName = GameWorld.GetPlayerServerSID(curPlayer)
    else:
        # 合服情况,玩家取自己服发送,非玩家数据按指定平台配置发,没有则取配置主服
        RegionName = 's%s'%GameWorld.GetPlayerMainServerID(OperatorID)
    if eventParam:
        eventParam = "&%s"%eventParam