From 92c1f0e4b8f19a97aefc7f4040aef905725646af Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 26 十一月 2025 18:48:29 +0800
Subject: [PATCH] 0312 增加非debug 允许内网不验证登录

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/DBCommon/CommonDefine.py   |    3 +++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.py |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/DBCommon/CommonDefine.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/DBCommon/CommonDefine.py
index c825b35..e719b95 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/DBCommon/CommonDefine.py
+++ b/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
 
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.py
index ed58995..2605dea 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.py
+++ b/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

--
Gitblit v1.8.0