hch
2025-11-26 92c1f0e4b8f19a97aefc7f4040aef905725646af
0312 增加非debug 允许内网不验证登录
2个文件已修改
5 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/DBCommon/CommonDefine.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/DBCommon/CommonDefine.py
@@ -23,6 +23,9 @@
        isDebugVersion = os.path.exists("BBF84B34-357E-435B-B3FF-D60370AAA6ED")
    return isDebugVersion
# 内网服登录不用验证
def IsInsideLogin():
    return os.path.exists(os.getcwd() + "\\ServerConfig\\dontchecklogin")
DATASAVE_MARK  =  0xFF88
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.py
@@ -3011,7 +3011,7 @@
            #===================================================================
            
            #if "@test@" in accountRec.ACCID or "@yun@" in accountRec.ACCID or accountRec.RegIP == "127.0.0.1":
            if CommonDefine.IsDebug() or accountRec.RegIP == "127.0.0.1":
            if CommonDefine.IsDebug() or accountRec.RegIP == "127.0.0.1" or CommonDefine.IsInsideLogin():
                #debug内部服务器不验证token, 脱机挂玩家不验证
                mylog.debug('iner no check')
                pass