feat: add GoPay payment method and update Plus mode settings in sidepanel

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
QLHazyCoder
2026-04-30 20:24:28 +08:00
parent e7386a482e
commit 7e05b42e3c
8 changed files with 106 additions and 450 deletions
+3
View File
@@ -455,6 +455,7 @@ const PERSISTED_SETTING_DEFAULTS = {
codex2apiAdminKey: '',
customPassword: '',
plusModeEnabled: false,
plusPaymentMethod: 'paypal',
paypalEmail: '',
paypalPassword: '',
currentPayPalAccountId: '',
@@ -1427,6 +1428,8 @@ function normalizePersistentSettingValue(key, value) {
return String(value || '');
case 'currentPayPalAccountId':
return String(value || '').trim();
case 'plusPaymentMethod':
return String(value || '').trim().toLowerCase() === 'gopay' ? 'gopay' : 'paypal';
case 'autoRunSkipFailures':
case 'autoRunDelayEnabled':
case 'phoneVerificationEnabled':