feat: 手动配置 HeroSMS maxPrice 并调整手机号复用计数

This commit is contained in:
zhangkun
2026-04-28 02:51:48 +08:00
parent 0f430113fa
commit 127fd1c653
6 changed files with 264 additions and 396 deletions
+3
View File
@@ -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':