feat: 手动配置 HeroSMS maxPrice 并调整手机号复用计数
This commit is contained in:
@@ -477,6 +477,7 @@ const PERSISTED_SETTING_DEFAULTS = {
|
||||
hotmailAccounts: [],
|
||||
mail2925Accounts: [],
|
||||
heroSmsApiKey: '',
|
||||
heroSmsMaxPrice: '',
|
||||
heroSmsCountryId: HERO_SMS_COUNTRY_ID,
|
||||
heroSmsCountryLabel: HERO_SMS_COUNTRY_LABEL,
|
||||
};
|
||||
@@ -1316,6 +1317,8 @@ function normalizePersistentSettingValue(key, value) {
|
||||
return normalizeMail2925Accounts(value);
|
||||
case 'heroSmsApiKey':
|
||||
return String(value || '');
|
||||
case 'heroSmsMaxPrice':
|
||||
return String(value || '').trim();
|
||||
case 'heroSmsCountryId':
|
||||
return Math.max(1, Math.floor(Number(value) || HERO_SMS_COUNTRY_ID));
|
||||
case 'heroSmsCountryLabel':
|
||||
|
||||
Reference in New Issue
Block a user