From 648c4fea1d821ef439710ee66a45ef3678d27610 Mon Sep 17 00:00:00 2001 From: QLHazyCoder <2825305047@qq.com> Date: Tue, 14 Apr 2026 17:08:31 +0800 Subject: [PATCH] fix: restore 2925 mail tab focus after resending verification codes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 吸收 PR #61 的核心改动:重发验证码后切回 2925 邮箱标签页等待新邮件 - 排除 PR 中与当前代码无关的回退:版本号、发布文档与 waiting_interval 倒计时逻辑保持现状 - 影响范围:background 验证码重发与 2925 邮箱轮询流程 --- background.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/background.js b/background.js index 258e4ae..adb4f24 100644 --- a/background.js +++ b/background.js @@ -4821,6 +4821,15 @@ async function requestVerificationCodeResend(step) { throw new Error(result.error); } + const currentState = await getState(); + if (currentState.mailProvider === '2925') { + const mailTabId = await getTabId('mail-2925'); + if (mailTabId) { + await chrome.tabs.update(mailTabId, { active: true }); + await addLog(`步骤 ${step}:已切换到 2925 邮箱标签页等待新邮件。`, 'info'); + } + } + return Date.now(); }