From d29e849ae1c16904118a64997bc989913ae39abd Mon Sep 17 00:00:00 2001 From: yan Date: Sun, 15 Feb 2026 22:16:59 +0800 Subject: [PATCH] =?UTF-8?q?```=20feat(AutoPlan):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=9C=B0=E8=84=89=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86=E5=92=8C?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 注释掉树脂耗尽模式和开放模式计数最小值配置项 - 添加地脉暂不支持的日志提示并返回 - 创建AutoLeyLineOutcropParam对象并设置各项参数 - 重新启用树脂耗尽模式和开放模式计数最小值 - 实现复活重试机制,最多重试5次 - 仅在包含复活错误信息时进行重试 - 移除其他场景的重试逻辑 ``` --- repo/js/AutoPlan/main.js | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/repo/js/AutoPlan/main.js b/repo/js/AutoPlan/main.js index 9fa8cd1cd..263c8cc9c 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": true, - "openModeCountMin": true, + // "isResinExhaustionMode": true, + // "openModeCountMin": true, "useAdventurerHandbook": false, "friendshipTeam": "friendshipTeam_7122cab56b16", "team": "team_d0798ca3aa27", @@ -127,6 +127,38 @@ async function autoLeyLineOutcrop(autoLeyLineOutcrop) { "isNotification": false } + if (true){ + log.info("地脉 暂不支持") + return + } + + let param = new AutoLeyLineOutcropParam(autoLeyLineOutcrop.count, autoLeyLineOutcrop.country, autoLeyLineOutcrop.leyLineOutcropType); + param.useAdventurerHandbook = autoLeyLineOutcrop.useAdventurerHandbook; + param.friendshipTeam = autoLeyLineOutcrop.friendshipTeam; + param.team = autoLeyLineOutcrop.team; + param.timeout = autoLeyLineOutcrop.timeout; + param.isGoToSynthesizer = autoLeyLineOutcrop.isGoToSynthesizer; + param.useFragileResin = autoLeyLineOutcrop.useFragileResin; + param.useTransientResin = autoLeyLineOutcrop.useTransientResin; + param.isNotification = autoLeyLineOutcrop.isNotification; + + param.isResinExhaustionMode = true; + param.openModeCountMin = true; + // 复活重试 + for (let i = 0; i < 5; i++) { + try { + await dispatcher.RunAutoLeyLineOutcropTask(param); + // 其他场景不重试 + break; + } catch (e) { + const errorMessage = e.message + // 只有选择了秘境的时候才会重试 + if (errorMessage.includes("复活")) { + continue; + } + throw e; + } + } } /**