feat: 更新账户运行记录逻辑,支持流程停止状态,优化样式以反映新状态

This commit is contained in:
祁连海
2026-04-17 22:34:30 +08:00
parent f5b622d272
commit 00b66d2157
5 changed files with 30 additions and 11 deletions
+1 -4
View File
@@ -1066,6 +1066,7 @@ async function setEmailStateSilently(email) {
async function setEmailState(email) {
await setEmailStateSilently(email);
if (email) {
await appendManualAccountRunRecordIfNeeded('step2_stopped', null, '步骤 2 已使用邮箱,流程尚未完成。');
await resumeAutoRunIfWaitingForEmail();
}
}
@@ -4696,10 +4697,6 @@ async function appendManualAccountRunRecordIfNeeded(status, stateOverride = null
}
const state = stateOverride || await getState();
if (isAutoRunLockedState(state)) {
return null;
}
return appendAndBroadcastAccountRunRecord(status, state, reason);
}