From 873969e18b1461fcf3e44844b540d911564f2d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BA=81=E5=8A=A8=E7=9A=84=E6=B0=A8=E6=B0=94?= <131591012+zaodonganqi@users.noreply.github.com> Date: Sun, 7 Dec 2025 16:08:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BA=93=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E6=8A=A5=E9=94=99=E4=B8=8E=E7=A9=BA?= =?UTF-8?q?=E5=BC=95=E7=94=A8=20(#2449)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/SwitchAccountMultipleMode/main.js | 10 +++++----- repo/js/SwitchAccountMultipleMode/manifest.json | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/repo/js/SwitchAccountMultipleMode/main.js b/repo/js/SwitchAccountMultipleMode/main.js index 264608c00..f1d8cff80 100644 --- a/repo/js/SwitchAccountMultipleMode/main.js +++ b/repo/js/SwitchAccountMultipleMode/main.js @@ -520,7 +520,7 @@ async function recognizeTextAndClick(targetText, ocrRegion, timeout = 8000) { keyDown("VK_MENU"); await sleep(500); for (let i = 0; i <= 4; i++) { - await click(math.round(genshin.width / 2.0), math.round(genshin.height * 0.8)); + await click(Math.round(genshin.width / 2.0), Math.round(genshin.height * 0.8)); await sleep(1000); } } finally { @@ -562,8 +562,8 @@ async function recognizeTextAndClick(targetText, ocrRegion, timeout = 8000) { await sleep(1000); if (verify.isExist()) { //这里可配置通知方法 - notification.error(`${script_name}触发人机验证,请手动登录。===待切换UID:${settings.UID}`); - log.error(`${script_name}触发人机验证,请手动登录。===待切换UID:${settings.UID}`); + notification.error(`${script_name}触发人机验证,请手动登录。===待切换账号:${settings.username}`); + log.error(`${script_name}触发人机验证,请手动登录。===待切换账号:${settings.username}`); } } /** @@ -584,14 +584,14 @@ async function recognizeTextAndClick(targetText, ocrRegion, timeout = 8000) { keyDown("VK_MENU"); await sleep(500); for (let i = 0; i <= 4; i++) { - await click(math.round(genshin.width / 2.0), math.round(genshin.height * 0.8)); + await click(Math.round(genshin.width / 2.0), Math.round(genshin.height * 0.8)); await sleep(1000); } //keyUp("VK_MENU"); await genshin.returnMainUi(); await sleep(1000); // 如果配置了通知 - notification.send("账号【" + settings.UID + "】切换成功"); + notification.send("账号【" + settings.username + "】切换成功"); } catch (error) { log.error(`${script_name}脚本执行过程中发生错误:${error.message}`); //如果发生错误,则发送通知 diff --git a/repo/js/SwitchAccountMultipleMode/manifest.json b/repo/js/SwitchAccountMultipleMode/manifest.json index 3e70e5d26..597d23c9a 100644 --- a/repo/js/SwitchAccountMultipleMode/manifest.json +++ b/repo/js/SwitchAccountMultipleMode/manifest.json @@ -1,8 +1,8 @@ { "manifest_version": 1, "name": "切换账号多模式", - "version": "1.1", - "bgi_version": "0.49.0", + "version": "1.2", + "bgi_version": "0.53.0", "description": "多种模式的切换账号,有下拉列表、填写账号密码,OCR操作或键鼠操作\n免责申明:所有的账号密码均保存在本地,请使用者妥善保管账号密码,请勿外泄账号密码。若因使用此脚本导致的账号泄露、封禁问题与脚本作者无关。", "tags": [ "切换账号",