From aedb6900ca59c23f61ddad67e88b6b6ebda5d344 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, 14 Dec 2025 10:39:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E8=B4=A6=E5=8F=B7=E5=BC=82=E5=B8=B8=20(#2493)?= 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 ed7f7d7c4..018036021 100644 --- a/repo/js/SwitchAccountMultipleMode/main.js +++ b/repo/js/SwitchAccountMultipleMode/main.js @@ -535,7 +535,7 @@ async function recognizeTextAndClick(targetText, ocrRegion, timeout = 8000) { await sleep(9000); await matchImgAndClick(login_out_account, "登录页的右下角退出按钮"); await matchImgAndClick(out_account, "退出当前账号"); - await matchImgAndClick(login_other_account, "登录其他账号"); + await recognizeTextAndClick("登录其他账号", RecognitionObject.Ocr(300, 200, 1200, 800), 5000); await sleep(1000); await matchImgAndClick(input_phone_or_email, "填写邮箱/手机号"); await inputText(settings.username); @@ -565,7 +565,7 @@ async function recognizeTextAndClick(targetText, ocrRegion, timeout = 8000) { * 如果发现卡在这一步,请适当延长sleep时间 */ await sleep(8000); - await recognizeTextAndClick("点击进入", RecognitionObject.Ocr(862, 966, 206, 104), 960, 540, 5000); + await recognizeTextAndClick("点击进入", RecognitionObject.Ocr(862, 966, 206, 104), 5000); await sleep(15000); //可能登录账号的时候出现月卡提醒,则先点击一次月卡。 diff --git a/repo/js/SwitchAccountMultipleMode/manifest.json b/repo/js/SwitchAccountMultipleMode/manifest.json index 06e5d1a1a..f23bacebe 100644 --- a/repo/js/SwitchAccountMultipleMode/manifest.json +++ b/repo/js/SwitchAccountMultipleMode/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "切换账号多模式", - "version": "1.4", + "version": "1.5", "bgi_version": "0.53.0", "description": "多种模式的切换账号,有下拉列表、填写账号密码,OCR操作或键鼠操作\n免责申明:所有的账号密码均保存在本地,请使用者妥善保管账号密码,请勿外泄账号密码。若因使用此脚本导致的账号泄露、封禁问题与脚本作者无关。", "tags": [