From 40b2ac28f4704b51024431a5ca3acaadfb45360c Mon Sep 17 00:00:00 2001 From: mno <718135749@qq.com> Date: Wed, 21 Jan 2026 11:53:21 +0800 Subject: [PATCH] =?UTF-8?q?js=EF=BC=9AAAA=E7=8B=97=E7=B2=AE=E6=89=B9?= =?UTF-8?q?=E5=8F=911.7.1=20(#2753)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复选择保留四星时出现错误的bug --- repo/js/AAA-Artifacts-Bulk-Supply/main.js | 10 +++++----- repo/js/AAA-Artifacts-Bulk-Supply/manifest.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/repo/js/AAA-Artifacts-Bulk-Supply/main.js b/repo/js/AAA-Artifacts-Bulk-Supply/main.js index df1c7c16e..271178580 100644 --- a/repo/js/AAA-Artifacts-Bulk-Supply/main.js +++ b/repo/js/AAA-Artifacts-Bulk-Supply/main.js @@ -401,7 +401,7 @@ async function processArtifacts(times = 1) { await sleep(1000); // 识别已储存经验(1570-880-1650-930) - const digits = await numberTemplateMatch("assets/已储存经验数字", 1573, 885, 74, 36); + let digits = await numberTemplateMatch("assets/已储存经验数字", 1573, 885, 74, 36); let initialValue = 0; if (digits >= 0) { @@ -429,7 +429,7 @@ async function processArtifacts(times = 1) { } await sleep(1000); - const match = await numberTemplateMatch("assets/分解数量数字", 100, 885, 200, 50); + let match = await numberTemplateMatch("assets/分解数量数字", 100, 885, 200, 50); match = (match - 1000) / 10000; if (match >= 0) { @@ -479,7 +479,7 @@ async function processArtifacts(times = 1) { } // 当前总经验(1470-880-205-70) - const digits2 = await numberTemplateMatch("assets/分解可获得经验数字", 1469, 899, 180, 37, 0.95, 0.85, 5, 1); + let digits2 = await numberTemplateMatch("assets/分解可获得经验数字", 1469, 899, 180, 37, 0.95, 0.85, 5, 1); let newValue = 0; if (digits2 >= 0) { @@ -516,7 +516,7 @@ async function processArtifacts(times = 1) { } // 7. 计算分解获得经验=总经验-上次剩余 - const resinExperience = Math.max(newValue - initialValue, 0); + let resinExperience = Math.max(newValue - initialValue, 0); log.info(`分解可获得经验: ${resinExperience}`); let fourStarNum = firstNumber - firstNumber2; if (settings.keep4Star) { @@ -526,7 +526,7 @@ async function processArtifacts(times = 1) { if (resultExperience === 0) { resultExperience = initialValue; } - const result = resultExperience; + let result = resultExperience; await genshin.returnMainUi(); return result; } diff --git a/repo/js/AAA-Artifacts-Bulk-Supply/manifest.json b/repo/js/AAA-Artifacts-Bulk-Supply/manifest.json index f485ca28a..4b3f5b3f3 100644 --- a/repo/js/AAA-Artifacts-Bulk-Supply/manifest.json +++ b/repo/js/AAA-Artifacts-Bulk-Supply/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "AAA狗粮批发", - "version": "1.7.0", + "version": "1.7.1", "tags": [ "狗粮" ],