16 卡牌服务端(数据备档、入库时间调整;每日3点6分入库,每30分钟备档;)
1个文件已修改
6 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBDataMgr.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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()