129 【战斗】战斗系统-服务端(个人战报支持配置是否仅保留1份;)
1个文件已修改
16 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
@@ -2193,13 +2193,15 @@
    if not os.path.exists(ReportDir):
        os.makedirs(ReportDir)
    else:
        items = os.listdir(ReportDir)
        for item in items:
            fullPath = os.path.join(ReportDir, item)
            try:
                os.remove(fullPath)
            except:
                pass
        isSaveOne = IpyGameDataPY.GetFuncCfg("TurnFightProcess", 2) # 个人战报是否只保留1份
        if isSaveOne:
            items = os.listdir(ReportDir)
            for item in items:
                fullPath = os.path.join(ReportDir, item)
                try:
                    os.remove(fullPath)
                except:
                    pass
            
    saveFilePath = os.path.join(ReportDir, "%s.tfr" % guid)
    GameWorld.DebugLogEx("战报路径=%s", saveFilePath)