feat: 新增 YYDS Mail 邮箱服务端点

This commit is contained in:
Q3CC
2026-05-16 21:58:14 +08:00
parent cfd2ac14e5
commit b2c8280476
14 changed files with 1211 additions and 3 deletions
+10
View File
@@ -18,6 +18,7 @@
clearAutoRunTimerAlarm,
clearFreeReusablePhoneActivation,
clearLuckmailRuntimeState,
clearYydsMailRuntimeState,
clearStopRequest,
closeLocalhostCallbackTabs,
closeTabsByUrlPrefix,
@@ -125,6 +126,7 @@
isHotmailProvider,
isLocalhostOAuthCallbackUrl,
isLuckmailProvider,
isYydsMailProvider = () => false,
isStopError,
isTabAlive,
launchAutoRunTimerPlan,
@@ -572,6 +574,14 @@
await clearLuckmailRuntimeState({ clearEmail: true });
await addLog('当前 LuckMail 邮箱运行态已清空,下轮将优先复用未用邮箱或重新购买邮箱。', 'ok');
}
if (
typeof markCurrentRegistrationAccountUsed !== 'function'
&& isYydsMailProvider(latestState)
&& typeof clearYydsMailRuntimeState === 'function'
) {
await clearYydsMailRuntimeState({ clearEmail: true });
await addLog('当前 YYDS Mail 邮箱运行态已清空,下轮将重新创建邮箱。', 'ok');
}
const localhostPrefix = buildLocalhostCleanupPrefix(payload.localhostUrl);
if (localhostPrefix) {
await closeTabsByUrlPrefix(localhostPrefix, {