From fa382ff4daf783a056c7bc6fc1de25fecc694362 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 03 十二月 2025 16:52:52 +0800
Subject: [PATCH] 0312 输出不能登录原因

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBDataMgr.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBDataMgr.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBDataMgr.py
index 99dc267..31f2e74 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBDataMgr.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBDataMgr.py
@@ -122,9 +122,9 @@
         GameWorld.Log("加载数据未完成,不存储备档")
         return
     curTime = int(time.time())
-    if saveToDB:
-        if curTime - PyGameData.g_lastRTBTime < BackupInterval * 60:
-            GameWorld.Log("备档冷却中!")
+    if not saveToDB:
+        if curTime > PyGameData.g_lastRTBTime and curTime - PyGameData.g_lastRTBTime < BackupInterval * 60:
+            GameWorld.DebugLog("备档冷却中! 上次备档时间=%s" % (GameWorld.ChangeTimeNumToStr(PyGameData.g_lastRTBTime)))
             return
     
     serverID = GameWorld.GetGameWorld().GetServerID()

--
Gitblit v1.8.0