hxp
7 天以前 a1ea5474ffd2b081668f9a0cef8d069aa78db85d
389 流向记录(战斗服务器不记录流向)
2个文件已修改
8 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
@@ -121,6 +121,10 @@
# @return None
def SendEventPack(eventTypeStr, dataDict, curPlayer=None):
    if GameWorld.IsBattleServer():
        GameWorld.DebugLogEx("战斗服务器暂不做流向记录")
        return
    if curPlayer:
        if not GameWorld.IsNormalPlayer(curPlayer):
            return
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -1343,6 +1343,10 @@
def GetServerVersion():
    return GetGameWorld().GetServerVersion()
def IsBattleServer():
    ## 是否战斗服务器
    return ToIntDef(ReadChConfig.GetPyMongoConfig("platform", "BattleServer"), 0) == 1
def GetServerGroupID():
    ## 服务器组ID,必须唯一,代表这台物理服务器
    return ToIntDef(ReadChConfig.GetPyMongoConfig("platform", "GroupID"), 0)