0312 登录的时候地图自己验证是否卡号了,卡号则直接进行下线逻辑
2个文件已修改
15 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.py 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -1904,7 +1904,8 @@
#@return 返回值无意义
#@remarks C++封包触发, 玩家下线
def PlayerDisconnect(index, tick):
    GameWorld.GetPsycoFunc(__Func_PlayerDisconnect)(index, tick)
    curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
    PlayerDisconnectEx(curPlayer, tick)
    return
##C++封包触发, 玩家下线
@@ -1912,8 +1913,7 @@
#@param tick 时间戳
#@return 返回值无意义
#@remarks C++封包触发, 玩家下线
def __Func_PlayerDisconnect(index, tick):
    curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
def PlayerDisconnectEx(curPlayer, tick):
    try:
        # 避免因逻辑错误导致下线失败,可能导致回档的情况
        DoPlayerDisconnect(curPlayer, tick)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.py
@@ -3048,7 +3048,14 @@
            
        #     self.sendOKString(CommonDefine.dgPlayerLogin, pack, accountRec.getBuffer())
        #     return True
        curPlayer = GameWorld.GetPlayerManager().FindPlayerByAccID(authAccID)
        if curPlayer:
            # 因为一些不确定的情况 玩家没有登出
            from Player import ChPlayer
            mylog.warning('玩家异常未登出 accid = %s-%s...'%(authAccID, authPack.IDType))
            ChPlayer.PlayerDisconnectEx(curPlayer, GameWorld.GetGameWorld().GetTick())
            self.sendFailString(CommonDefine.dgPlayerLogin, pack, disKickRepeatPlayer)
            return True
        mylog.debug('auth accid = %s-%s...'%(authAccID, authPack.IDType))