feat: 添加手机号短信服务提供商顺序的支持,并更新相关测试用例

This commit is contained in:
QLHazyCoder
2026-05-05 02:53:41 +08:00
parent cb41f5c243
commit 75bb53cec1
2 changed files with 15 additions and 0 deletions
@@ -691,6 +691,7 @@ ${extractFunction('normalizeNexSmsCountryIdValue')}
${extractFunction('normalizeNexSmsCountryOrderValue')}
${extractFunction('normalizeNexSmsServiceCodeValue')}
function getSelectedPhoneSmsProvider() { return normalizePhoneSmsProvider(selectPhoneSmsProvider?.value || latestState?.phoneSmsProvider); }
function getSelectedPhoneSmsProviderOrder() { return ['nexsms', '5sim']; }
${extractFunction('normalizeFiveSimCountryId')}
${extractFunction('normalizeFiveSimCountryLabel')}
${extractFunction('normalizeFiveSimOperator')}
@@ -727,6 +728,7 @@ return { collectSettingsPayload };
assert.equal(payload.phoneVerificationEnabled, true);
assert.equal(payload.signupMethod, 'phone');
assert.equal(payload.phoneSmsProvider, 'hero-sms');
assert.deepStrictEqual(payload.phoneSmsProviderOrder, ['nexsms', '5sim']);
assert.equal(payload.accountRunHistoryTextEnabled, true);
assert.equal(payload.accountRunHistoryHelperBaseUrl, 'http://127.0.0.1:17373');
assert.equal(payload.heroSmsApiKey, 'demo-key');