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
+6 -1
View File
@@ -694,9 +694,14 @@
await setContributionMode(true);
}
if (modeChanged) {
const selectedPlusPaymentMethod = String(
(stateUpdates.plusPaymentMethod ?? currentState?.plusPaymentMethod ?? 'paypal')
).trim().toLowerCase() === 'gopay'
? 'GoPay'
: 'PayPal';
await addLog(
Boolean(updates.plusModeEnabled)
? 'Plus 模式已开启,已切换为 Plus Checkout + PayPal 步骤。'
? `Plus 模式已开启,已切换为 Plus Checkout 步骤,当前支付方式:${selectedPlusPaymentMethod}`
: 'Plus 模式已关闭,已恢复普通注册授权步骤。',
'info'
);