From 8dce358155b48efd0623c885fee00ba495d8a441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B7=E4=B8=AA=E5=90=8D=E5=AD=97=E5=A5=BD=E9=9A=BE?= =?UTF-8?q?=E7=9A=84=E5=96=B5?= <25520958+MisakaAldrich@users.noreply.github.com> Date: Mon, 3 Nov 2025 15:06:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BC=A0=E6=A0=87=E5=9D=90=E6=A0=87?= =?UTF-8?q?=E8=B6=85=E5=87=BA=E6=B8=B8=E6=88=8F=E7=AA=97=E5=8F=A3=20(#2302?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/SwitchAccountMultipleMode/main.js | 4 ++-- repo/js/SwitchAccountMultipleMode/manifest.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/repo/js/SwitchAccountMultipleMode/main.js b/repo/js/SwitchAccountMultipleMode/main.js index 614bffbb2..264608c00 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(genshin.width / 2.0, genshin.height * 0.8); + await click(math.round(genshin.width / 2.0), math.round(genshin.height * 0.8)); await sleep(1000); } } finally { @@ -584,7 +584,7 @@ async function recognizeTextAndClick(targetText, ocrRegion, timeout = 8000) { keyDown("VK_MENU"); await sleep(500); for (let i = 0; i <= 4; i++) { - await click(genshin.width / 2.0, genshin.height * 0.8); + await click(math.round(genshin.width / 2.0), math.round(genshin.height * 0.8)); await sleep(1000); } //keyUp("VK_MENU"); diff --git a/repo/js/SwitchAccountMultipleMode/manifest.json b/repo/js/SwitchAccountMultipleMode/manifest.json index c78faaaa8..3e70e5d26 100644 --- a/repo/js/SwitchAccountMultipleMode/manifest.json +++ b/repo/js/SwitchAccountMultipleMode/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "切换账号多模式", - "version": "1.0", + "version": "1.1", "bgi_version": "0.49.0", "description": "多种模式的切换账号,有下拉列表、填写账号密码,OCR操作或键鼠操作\n免责申明:所有的账号密码均保存在本地,请使用者妥善保管账号密码,请勿外泄账号密码。若因使用此脚本导致的账号泄露、封禁问题与脚本作者无关。", "tags": [