修复登录其他账号异常 (#2493)

This commit is contained in:
躁动的氨气
2025-12-14 10:39:06 +08:00
committed by GitHub
parent 147f767721
commit aedb6900ca
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
//可能登录账号的时候出现月卡提醒,则先点击一次月卡。

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "切换账号多模式",
"version": "1.4",
"version": "1.5",
"bgi_version": "0.53.0",
"description": "多种模式的切换账号有下拉列表、填写账号密码OCR操作或键鼠操作\n免责申明所有的账号密码均保存在本地请使用者妥善保管账号密码请勿外泄账号密码。若因使用此脚本导致的账号泄露、封禁问题与脚本作者无关。",
"tags": [