feat: 新增 YYDS Mail 邮箱服务端点
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user