feat: 在步骤 5 中新增年龄输入模式处理,优化用户体验

This commit is contained in:
QLHazyCoder
2026-04-16 16:50:10 +08:00
parent 6670acf68c
commit ecfc5ad77a
2 changed files with 15 additions and 0 deletions
+15
View File
@@ -2018,8 +2018,23 @@ async function step5_fillNameBirthday(payload) {
throw new Error('未找到“完成帐户创建”按钮。URL: ' + location.href);
}
const isAgeMode = !birthdayMode && Boolean(ageInput);
if (isAgeMode) {
log('步骤 5:当前为年龄输入模式,点击“继续”后将直接视为完成并进入步骤 6。', 'warn');
reportComplete(5, {
skippedPostSubmitCheck: true,
directProceedToStep6: true,
});
}
await humanPause(500, 1300);
simulateClick(completeBtn);
if (isAgeMode) {
log('步骤 5:年龄模式已点击“继续”,已跳过后续结果等待。', 'warn');
return;
}
log('步骤 5:已点击“完成帐户创建”,正在等待页面结果...');
const outcome = await waitForStep5SubmitOutcome();
Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 58 KiB