ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBDataMgr.py
@@ -124,7 +124,7 @@
    curTime = int(time.time())
    if not saveToDB:
        if curTime > PyGameData.g_lastRTBTime and curTime - PyGameData.g_lastRTBTime < BackupInterval * 60:
            GameWorld.DebugLog("备档冷却中! 上次备档时间=%s" % (GameWorld.ChangeTimeNumToStr(PyGameData.g_lastRTBTime)))
            #GameWorld.DebugLog("备档冷却中! 上次备档时间=%s" % (GameWorld.ChangeTimeNumToStr(PyGameData.g_lastRTBTime)))
            return
    
    serverID = GameWorld.GetGameWorld().GetServerID()
@@ -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