From 94292ef4757527c158aed277a4f6f775cd8a3036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=B1=E5=91=B1z?= <131586533+jidingcai@users.noreply.github.com> Date: Sun, 11 Jan 2026 09:54:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=81=E5=8C=A0=E9=93=BA2.4.1=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=20(#2653)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### 2.4.1`(2026-01-11)` - **修复**: 1. 对话界面点击锻造图标失败,卡住的问题 --- repo/js/铁匠铺/README.md | 7 +++++-- repo/js/铁匠铺/main.js | 13 +++++++++++-- repo/js/铁匠铺/manifest.json | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/repo/js/铁匠铺/README.md b/repo/js/铁匠铺/README.md index bfac88669..841a7f500 100644 --- a/repo/js/铁匠铺/README.md +++ b/repo/js/铁匠铺/README.md @@ -121,6 +121,10 @@ Q:OCR识别矿石数量不准确怎么办? ## 📜 更新日志 +### 2.4.1`(2026-01-11)` +- **修复**: + 1. 对话界面点击锻造图标失败,卡住的问题 + ### 2.4.0`(2025-11-29)` - **优化**:纳塔铁匠铺路线可能出现跑过头的问题 - **新增**: @@ -176,9 +180,8 @@ Q:OCR识别矿石数量不准确怎么办? --- -**最后更新**:2025 年 11 月 29 日 +**最后更新**:2026 年 01 月 11 日 **维护者**:@呱呱z > 💡 提示:建议定期检查更新以获取最佳体验和最新功能 -**矿石优先级说明**: \ No newline at end of file diff --git a/repo/js/铁匠铺/main.js b/repo/js/铁匠铺/main.js index 859078735..5dd97bb9d 100644 --- a/repo/js/铁匠铺/main.js +++ b/repo/js/铁匠铺/main.js @@ -686,12 +686,21 @@ async function forgeOre(smithyName, maxOre = null) { let dialogFound = false; for (let attempt = 0; attempt < maxAttempts; attempt++) { if (await findAndInteract(ForgeRo, { - useClick: true, timeout: 2000, interval: 500, postClickDelay: 1000, singleAttempt: true - })) { + })) { + await sleep(1000); + await click(960, 1042); + await findAndInteract(ForgeRo, { + useClick: true, + timeout: 2000, + interval: 500, + postClickDelay: 1000, + singleAttempt: true + }); + log.info("已找到对话界面锻造图标并点击"); await sleep(1000); await click(960, 1042); diff --git a/repo/js/铁匠铺/manifest.json b/repo/js/铁匠铺/manifest.json index 35784e789..d7441b803 100644 --- a/repo/js/铁匠铺/manifest.json +++ b/repo/js/铁匠铺/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "自动锻造魔矿(识图版)", - "version": "2.4.0", + "version": "2.4.1", "bgi_version": "0.48.2", "description": "自动选择铁匠铺和使用矿物去锻造精锻矿。\n \n使用前请阅读“readme”文件以获取更多详细信息。 \n---更新说明--- \n- 请查阅readme", "tags": [