From 0821a43a815337c2920e4ec436f4ab08d91c147e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 24 十二月 2025 15:39:18 +0800
Subject: [PATCH] 374 【活动内容】开服庆典-服务端(庆典白骨成就改为扫荡就算,挑战过关不算;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBDataMgr.py |    9 ++++++---
 1 files changed, 6 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 90d84fc..d1cd307 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBDataMgr.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBDataMgr.py
@@ -158,9 +158,12 @@
     # 删除多余备档
     for bakInfo in bakFileList[BackupCopyMax:]:
         filePath = bakInfo[-1]
-        os.remove(filePath)
-        GameWorld.Log("删除多余备档文件: %s" % filePath)
-        
+        try:
+            os.remove(filePath)
+            GameWorld.Log("删除多余备档文件: %s" % filePath)
+        except:
+            GameWorld.ErrLog("删除多余备档文件失败: %s" % filePath)
+            
     if saveToDB:
         SaveGameWorldDataToDB(saveData)
     return

--
Gitblit v1.8.0