修改日志显示,合并同一轮中对应的邮箱和手机号

This commit is contained in:
QLHazyCoder
2026-05-05 03:59:09 +08:00
parent c62e1746f8
commit 24f5b79bf1
14 changed files with 377 additions and 42 deletions
+3
View File
@@ -801,6 +801,7 @@ const DEFAULT_STATE = {
currentLuckmailPurchase: null,
currentLuckmailMailCursor: null,
currentPhoneActivation: null,
phoneNumber: '',
currentPhoneVerificationCode: '',
currentPhoneVerificationCountdownEndsAt: 0,
currentPhoneVerificationCountdownWindowIndex: 0,
@@ -2694,6 +2695,7 @@ async function setEmailStateSilently(email) {
if (normalizedEmail) {
updates.accountIdentifierType = 'email';
updates.accountIdentifier = normalizedEmail;
updates.phoneNumber = '';
updates.signupPhoneNumber = '';
updates.signupPhoneActivation = null;
updates.signupPhoneCompletedActivation = null;
@@ -2726,6 +2728,7 @@ async function setSignupPhoneStateSilently(phoneNumber) {
if (normalizedPhoneNumber) {
updates.accountIdentifierType = 'phone';
updates.accountIdentifier = normalizedPhoneNumber;
updates.phoneNumber = '';
if (!isPhoneActivationForNumber(currentState?.signupPhoneActivation, normalizedPhoneNumber)) {
updates.signupPhoneActivation = null;
updates.signupPhoneVerificationRequestedAt = null;