From b679fc3e88140c768802628f5fd2bc3296083652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E4=BA=91?= Date: Sat, 24 May 2025 10:42:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E6=8D=A2=E6=88=98=E6=96=97?= =?UTF-8?q?=E9=98=9F=E5=89=8D=E5=B0=91=E9=87=8F=E7=AD=89=E5=BE=85=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E8=A2=AB=E6=89=93=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/AutoLeyLineOutcrop/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repo/js/AutoLeyLineOutcrop/main.js b/repo/js/AutoLeyLineOutcrop/main.js index 122e481b..87dab4e7 100644 --- a/repo/js/AutoLeyLineOutcrop/main.js +++ b/repo/js/AutoLeyLineOutcrop/main.js @@ -883,11 +883,12 @@ async function attemptReward() { click(Math.round(originalResin.x + originalResin.width / 2), Math.round(originalResin.y + originalResin.height / 2)); } else if (isResinEmpty) { log.error("识别到补充原粹树脂,看来树脂用完了呢"); - await keyPress("VK_ESCAPE"); + keyPress("VK_ESCAPE"); throw new Error("树脂已用完"); } if (settings.friendshipTeam) { log.info("切换回战斗队伍"); + await sleep(500); const switchSuccess = await switchTeam(settings.team); // if (!switchSuccess) { // log.warn("切换队伍失败,返回七天神像切换");