From b53cc882d496de7f4821df4b6176ab95fe77300c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E4=BA=91?= Date: Sun, 8 Jun 2025 14:19:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E6=9C=AA=E6=89=BE=E5=88=B0=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E7=9B=B4=E6=8E=A5=E7=BB=93=E6=9D=9F=20(#1027)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/AutoLeyLineOutcrop/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repo/js/AutoLeyLineOutcrop/main.js b/repo/js/AutoLeyLineOutcrop/main.js index 08422b8a..500e12f1 100644 --- a/repo/js/AutoLeyLineOutcrop/main.js +++ b/repo/js/AutoLeyLineOutcrop/main.js @@ -666,7 +666,10 @@ async function adjustViewForReward(boxIconRo, token) { let iconRes = captureRegion.Find(boxIconRo); if (!iconRes.isExist()) { - throw new Error('未找到图标,没有地脉花'); + log.warn("未找到图标,等待一下"); + await sleep(1000); + continue; // 没有找到图标等一秒再继续 + // throw new Error('未找到图标,没有地脉花'); } // 计算图标相对于屏幕中心的位置