From cc67e44dc71940eab25437bca3326a3412517f89 Mon Sep 17 00:00:00 2001 From: callmeyan Date: Wed, 31 Jul 2024 12:53:43 +0800 Subject: [PATCH] fixed: disabled asiapay --- src/pages/bill/external_create.tsx | 2 +- src/pages/pay/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/bill/external_create.tsx b/src/pages/bill/external_create.tsx index 2d9f64e..dea82c5 100644 --- a/src/pages/bill/external_create.tsx +++ b/src/pages/bill/external_create.tsx @@ -35,7 +35,7 @@ const ExternalCreate = () => { const navigate = useNavigate() const createBill = (params: ExternalCreateParamsType) => { setState({loading: true}) - const pay_channel = searchParams.get('pay_channel') || 'asia_pay' + const pay_channel = searchParams.get('pay_channel') || 'flywire' createExternalBill(params).then((ret) => { setState({loading: false}) navigate(`/pay?bill=${ret.id}&pay_channel=${pay_channel}`, {replace: true}) diff --git a/src/pages/pay/index.tsx b/src/pages/pay/index.tsx index 2a13c2b..3b53da4 100644 --- a/src/pages/pay/index.tsx +++ b/src/pages/pay/index.tsx @@ -24,8 +24,8 @@ const PayIndex = () => { return; } - const payChannel = search.get('pay_channel') || 'flywire' - setPayChannel(payChannel) + // const payChannel = search.get('pay_channel') || 'flywire' + setPayChannel('flywire') getBillDetail(Number(billId)).then((bill) => { // 判断bill状态 if (bill.status != BillStatus.PENDING) {