重构duckduckgo邮箱获取

This commit is contained in:
QLHazyCoder
2026-05-12 02:26:46 +08:00
parent 745010d6c9
commit f81cc74c29
16 changed files with 492 additions and 53 deletions
+2 -2
View File
@@ -1320,7 +1320,7 @@
throw new Error('自动流程运行中,当前不能手动修改邮箱。');
}
const email = String(message.payload?.email || '').trim() || null;
await setEmailStateSilently(email);
await setEmailStateSilently(email, { source: 'manual' });
return { ok: true, email };
}
@@ -1329,7 +1329,7 @@
if (isAutoRunLockedState(state)) {
throw new Error('自动流程运行中,当前不能手动修改邮箱。');
}
await setEmailState(message.payload.email);
await setEmailState(message.payload.email, { source: 'manual' });
await resumeAutoRun();
return { ok: true, email: message.payload.email };
}