重构更新账号日志功能,添加开发者模式
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
broadcastDataUpdate,
|
||||
cancelScheduledAutoRun,
|
||||
checkIcloudSession,
|
||||
clearAccountRunHistory,
|
||||
clearAutoRunTimerAlarm,
|
||||
clearLuckmailRuntimeState,
|
||||
clearStopRequest,
|
||||
@@ -270,6 +271,18 @@
|
||||
return { ok: true };
|
||||
}
|
||||
|
||||
case 'CLEAR_ACCOUNT_RUN_HISTORY': {
|
||||
const state = await getState();
|
||||
if (isAutoRunLockedState(state)) {
|
||||
throw new Error('自动流程运行中,当前不能清理邮箱记录。');
|
||||
}
|
||||
if (typeof clearAccountRunHistory !== 'function') {
|
||||
return { ok: true, clearedCount: 0 };
|
||||
}
|
||||
const result = await clearAccountRunHistory(state);
|
||||
return { ok: true, ...result };
|
||||
}
|
||||
|
||||
case 'EXECUTE_STEP': {
|
||||
clearStopRequest();
|
||||
if (message.source === 'sidepanel') {
|
||||
|
||||
Reference in New Issue
Block a user