From 394e682047418057a54f96f89b75af65c928ea64 Mon Sep 17 00:00:00 2001 From: yan Date: Sun, 18 Jan 2026 12:36:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(FullyAutoAndSemiAutoTools):=20?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=88=98=E6=96=97=E7=AD=96=E7=95=A5=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=A3=80=E6=9F=A5=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 注释掉JSON解析和描述检查相关代码 - 保留路径关键词匹配的战斗需求检查逻辑 - 简化战斗需求判断流程 --- repo/js/FullyAutoAndSemiAutoTools/main.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/repo/js/FullyAutoAndSemiAutoTools/main.js b/repo/js/FullyAutoAndSemiAutoTools/main.js index 064358e53..fdc1d04e5 100644 --- a/repo/js/FullyAutoAndSemiAutoTools/main.js +++ b/repo/js/FullyAutoAndSemiAutoTools/main.js @@ -1371,11 +1371,12 @@ async function runPath(path) { //检查战斗需求 try { if (!team.fight) { - const one = JSON.parse(file.readTextSync(path)) - if (one.info?.description?.includes("请配置好战斗策略")) { - log.warn(`[{mode}] 路径需要配置好战斗策略: {path},如已配置请忽略`, settings.mode, path) - team.fight = true - } else if (team.fightKeys.some(item => path.includes(`\\${item}\\`))) { + // const one = JSON.parse(file.readTextSync(path)) + // if (one.info?.description?.includes("请配置好战斗策略")) { + // log.warn(`[{mode}] 路径需要配置好战斗策略: {path},如已配置请忽略`, settings.mode, path) + // team.fight = true + // } else + if (team.fightKeys.some(item => path.includes(`\\${item}\\`))) { team.fight = true } }