feat: 更新手机号验证设置UI,优化显示逻辑并添加相关测试

This commit is contained in:
QLHazyCoder
2026-05-04 19:09:37 +08:00
parent b595f5366a
commit f2e6a1ed3e
14 changed files with 1230 additions and 89 deletions
+10 -4
View File
@@ -4079,15 +4079,21 @@
if (!normalizedActivation) {
throw new Error('步骤 2:接码平台返回的手机号订单无效。');
}
const countryConfig = resolveCountryConfigFromActivation(normalizedActivation, state);
const signupActivation = normalizeActivation({
...normalizedActivation,
countryId: countryConfig?.id ?? normalizedActivation.countryId,
countryLabel: normalizedActivation.countryLabel || countryConfig?.label || '',
}) || normalizedActivation;
await persistSignupPhoneRuntimeState({
signupPhoneNumber: normalizedActivation.phoneNumber,
signupPhoneActivation: normalizedActivation,
signupPhoneNumber: signupActivation.phoneNumber,
signupPhoneActivation: signupActivation,
signupPhoneVerificationRequestedAt: null,
signupPhoneVerificationPurpose: 'signup',
accountIdentifierType: 'phone',
accountIdentifier: normalizedActivation.phoneNumber,
accountIdentifier: signupActivation.phoneNumber,
});
return normalizedActivation;
return signupActivation;
});
}