From 9b842ce0ab83b3eedf6df5dee59dc4dd4075411b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=A4=E5=8F=88?= <104784428+guyou45@users.noreply.github.com> Date: Wed, 12 Nov 2025 17:10:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=BE=99=E8=9B=8B=E5=9C=A8?= =?UTF-8?q?=E6=9C=80=E5=90=8E=E4=B8=80=E9=A1=B5=EF=BC=8C=E5=B0=B1=E8=B7=B3?= =?UTF-8?q?=E5=87=BA=E5=BE=AA=E7=8E=AF=20(#2343)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update README.md * Update print statement from 'Hello' to 'Goodbye' * 更新 manifest.json --- repo/js/AutoPickLitter/README.md | 4 ++++ repo/js/AutoPickLitter/main.js | 13 ++++++++++--- repo/js/AutoPickLitter/manifest.json | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/repo/js/AutoPickLitter/README.md b/repo/js/AutoPickLitter/README.md index 4405d2e33..d5301d732 100644 --- a/repo/js/AutoPickLitter/README.md +++ b/repo/js/AutoPickLitter/README.md @@ -31,6 +31,9 @@ ## 更新 +### 版本:2.0.2 +1.修改龙蛋滑动小段,直接跳出问题 + ### 版本:2.0.1 1.精修识别对话区域 @@ -84,3 +87,4 @@ 3.更新御神签的识别,以及修复挂签bug 4.输出福利餐得到的食物,以及幸运签的内容到本地,后续还会加入其他东西 + diff --git a/repo/js/AutoPickLitter/main.js b/repo/js/AutoPickLitter/main.js index 6d0fb7589..561f5e263 100644 --- a/repo/js/AutoPickLitter/main.js +++ b/repo/js/AutoPickLitter/main.js @@ -425,12 +425,12 @@ async function chcekDragonEggs() { if (DragonEgg.success) { let ocrEggNum = await performOcr("", { min: DragonEgg.coordinates[0]-46, max: DragonEgg.coordinates[0]+34 }, { min: DragonEgg.coordinates[1]+56, max: DragonEgg.coordinates[1]+83 }, true); - log.info(`第一次识别到的数字:${ocrEggNum.text}`); + // log.info(`第一次识别到的数字:${ocrEggNum.text}`); if (ocrEggNum.text == "") { await sleep(500); ocrEggNum = await performOcr("", { min: DragonEgg.coordinates[0]-46, max: DragonEgg.coordinates[0]+34 }, { min: DragonEgg.coordinates[1]+56, max: DragonEgg.coordinates[1]+83 }, true); - log.info(`第二次识别到的数字:${ocrEggNum.text}`); + // log.info(`第二次识别到的数字:${ocrEggNum.text}`); }; DragonEggs[index] = Number(ocrEggNum.text); }else{ @@ -477,6 +477,12 @@ async function chcekDragonEggs() { await scrollPage(300, 10, 5); await sleep(1000); judgeEgg = 1; + // 判断是否为最后一页 + let sliderBottom = await findImgIcon("assets/RecognitionObject/SliderBottom.png", { min: 1284, max: 1293 }, { min: 916, max: 942 }, false); + if (sliderBottom.success) { + log.info("孤零零的龙蛋在最后一页!"); + continue; + }; }; // 判断是否到底 @@ -1204,4 +1210,5 @@ async function checkExpire() { await fakeLog("AutoPickLitter脚本", true, false, 2333); -})(); \ No newline at end of file + +})(); diff --git a/repo/js/AutoPickLitter/manifest.json b/repo/js/AutoPickLitter/manifest.json index f11f6524a..e138329a6 100644 --- a/repo/js/AutoPickLitter/manifest.json +++ b/repo/js/AutoPickLitter/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "提瓦特杂事(收集)", - "version": "2.0.1", + "version": "2.0.2", "tags": [ "玄学", "收集",