(options = {})
| 106 | } |
| 107 | |
| 108 | async function rerunStep6ForStep7Recovery(options = {}) { |
| 109 | const { |
| 110 | logMessage = '步骤 7:正在回到步骤 6,重新发起登录验证码流程...', |
| 111 | skipPreLoginCleanup = false, |
| 112 | postStepDelayMs = 3000, |
| 113 | } = options; |
| 114 | const currentState = await getState(); |
| 115 | await addLog(logMessage, 'warn'); |
| 116 | await executeStep6(currentState, { skipPreLoginCleanup }); |
| 117 | if (postStepDelayMs > 0) { |
| 118 | await sleepWithStop(postStepDelayMs); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | async function executeStep7(state) { |
| 123 | if (shouldSkipLoginVerificationForCpaCallback(state)) { |
no test coverage detected