From 02628d6fe072b408772e73c7a8fafb757d6fd63f Mon Sep 17 00:00:00 2001 From: kaedelcb <57870068+kaedelcb@users.noreply.github.com> Date: Sun, 29 Jun 2025 20:43:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=AB=E4=B8=B9=E5=9C=B0=E8=84=89=E8=8A=B1?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A2=86=E5=A5=96=E7=95=8C=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E8=8C=83=E5=9B=B4=20(#1240)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不影响一般使用,先不更新版本号,下个版本号一起写。 --- repo/js/AutoFontaineLeyLine/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repo/js/AutoFontaineLeyLine/main.js b/repo/js/AutoFontaineLeyLine/main.js index 77529bc4..615a3d69 100644 --- a/repo/js/AutoFontaineLeyLine/main.js +++ b/repo/js/AutoFontaineLeyLine/main.js @@ -62,7 +62,7 @@ } } const NowTime = new Date(); - if (Math.abs(NowTime - startTime)>chaotime*1000){if (x===0 & y===0){log.info(`${chaotime}秒超时退出,"${wenzi}"未找到`);}return result = {found: false };}else{ii=8;if (x !== 861){await keyPress("VK_W");}log.info(`"${wenzi}"识别中……`);} + if (Math.abs(NowTime - startTime)>chaotime*1000){if (x===0 & y===0){log.info(`${chaotime}秒超时退出,"${wenzi}"未找到`);}return result = {found: false };}else{ii=8;if (x !== 840){await keyPress("VK_W");}log.info(`"${wenzi}"识别中……`);} await sleep(100); } } @@ -474,7 +474,7 @@ } } - await Textocr("地脉之花", 1, 1, 0, 861,265, 194, 265); + await Textocr("地脉之花", 1, 1, 0, 840,225, 230, 125); await sleep(500); for (let j = 0;j < 2;j++) { @@ -602,7 +602,7 @@ } async function isOnRewardPage() { - const rewardText = await Textocr("地脉之花", 0.2, 0, 0, 861,265, 194, 265); + const rewardText = await Textocr("地脉之花", 0.2, 0, 0, 840,225, 230, 125); return rewardText.found; }