From 188ae2279a32e170ccf9b339b6a78ebfaf4efcbb Mon Sep 17 00:00:00 2001 From: yan Date: Fri, 27 Feb 2026 22:08:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(AutoPlan):=20=E8=B0=83=E6=95=B4=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E8=84=9A=E6=9C=AC=E6=89=A7=E8=A1=8C=E9=97=B4?= =?UTF-8?q?=E9=9A=94=E5=92=8C=E7=95=8C=E9=9D=A2=E5=88=87=E6=8D=A2=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将计划执行间隔从 1 秒增加到 3 秒 - 在界面切换后添加延迟以确保操作稳定 - 在地图打开操作前添加延迟等待 --- repo/js/AutoPlan/main.js | 2 +- repo/js/AutoPlan/utils/physical.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/repo/js/AutoPlan/main.js b/repo/js/AutoPlan/main.js index bffe02036..aace459ad 100644 --- a/repo/js/AutoPlan/main.js +++ b/repo/js/AutoPlan/main.js @@ -176,7 +176,7 @@ async function autoLeyLineOutcrop(autoLeyLineOutcrop) { async function autoRunList(autoRunOrderList) { //计划执行 for (const item of autoRunOrderList) { - await sleep(1000) + await sleep(3000) if (item.runType === config.user.runTypes[0]) { await autoDomain(item.autoFight); } else if (item.runType === config.user.runTypes[1]) { diff --git a/repo/js/AutoPlan/utils/physical.js b/repo/js/AutoPlan/utils/physical.js index 27d1202c4..7a84092dd 100644 --- a/repo/js/AutoPlan/utils/physical.js +++ b/repo/js/AutoPlan/utils/physical.js @@ -49,10 +49,12 @@ async function ocrPhysical(opToMainUi = false,openMap=false,minPhysical=20,isRes log.debug(`===开始识别原粹树脂===`) let ms = 1000 // 定义操作延迟时间(毫秒) if (opToMainUi) { + await sleep(ms) await toMainUi(); // 切换到主界面 } if (openMap){ + await sleep(ms) //打开地图界面 await keyPress('M') }