Stabilize iCloud verification polling

This commit is contained in:
initiatione
2026-05-06 18:25:29 +08:00
parent 9e6899f37c
commit 99669c8eef
4 changed files with 213 additions and 3 deletions
-1
View File
@@ -5448,7 +5448,6 @@ async function withIcloudLoginHelp(actionLabel, action) {
if (shouldEmitIcloudTransientLog(`${safeActionLabel}:final`)) {
await addLog(`iCloud${safeActionLabel}受网络/上下文波动影响:${getErrorMessage(err)}`, 'warn');
}
const safeActionLabel = String(actionLabel || '操作').trim() || '操作';
const transientError = new Error(`iCloud${safeActionLabel}受网络/上下文波动影响,请稍后重试。`);
transientError.code = 'ICLOUD_TRANSIENT_CONTEXT';
transientError.actionLabel = safeActionLabel;