From 0e2480012a24780a42bd92f2d01f403ab93397c0 Mon Sep 17 00:00:00 2001 From: yan Date: Sun, 15 Feb 2026 22:10:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(AutoPlan):=20=E4=BF=AE=E5=A4=8D=E6=A0=91?= =?UTF-8?q?=E8=84=82=E8=80=97=E5=B0=BD=E6=A8=A1=E5=BC=8F=E5=92=8C=E5=BC=80?= =?UTF-8?q?=E6=94=BE=E6=A8=A1=E5=BC=8F=E8=AE=A1=E6=95=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 isResinExhaustionMode 配置项从 false 修改为 true - 将 openModeCountMin 配置项从 false 修改为 true - 更新自动运行列表过滤条件以支持多个运行类型 - 添加对 autoLeyLineOutcrop.count 的可选链检查 - 扩展运行配置以同时处理 DomainRoundNum 和 LeyLineOutcrop 计数 --- repo/js/AutoPlan/main.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/repo/js/AutoPlan/main.js b/repo/js/AutoPlan/main.js index 81fe760d4..9fa8cd1cd 100644 --- a/repo/js/AutoPlan/main.js +++ b/repo/js/AutoPlan/main.js @@ -115,8 +115,8 @@ async function autoLeyLineOutcrop(autoLeyLineOutcrop) { "count": 0, "country": "country_cb3d792be8db", "leyLineOutcropType": "leyLineOutcropType_f259b77fabcb", - "isResinExhaustionMode": false, - "openModeCountMin": false, + "isResinExhaustionMode": true, + "openModeCountMin": true, "useAdventurerHandbook": false, "friendshipTeam": "friendshipTeam_7122cab56b16", "team": "team_d0798ca3aa27", @@ -352,7 +352,10 @@ async function main() { let runConfig = config.run.config; //"队伍名称|秘境名称/刷取物品名称|刷几轮|限时/周日|周几执行(0-6)不填默认执行|执行顺序,..." const autoRunOrderList = await initRunOrderList(runConfig); - const list = autoRunOrderList.filter(item => item.runType === config.user.runTypes[0] && item.autoFight.DomainRoundNum > 0) + const list = autoRunOrderList.filter(item => + (item.runType === config.user.runTypes[0] && item?.autoFight.DomainRoundNum > 0) + || (item.runType === config.user.runTypes[1] && item?.autoLeyLineOutcrop.count > 0) + ) if (list?.length > 0) { await autoRunList(list); } else {