fixed: disabled asiapay
This commit is contained in:
parent
a2c94abf20
commit
cc67e44dc7
@ -35,7 +35,7 @@ const ExternalCreate = () => {
|
|||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
const createBill = (params: ExternalCreateParamsType) => {
|
const createBill = (params: ExternalCreateParamsType) => {
|
||||||
setState({loading: true})
|
setState({loading: true})
|
||||||
const pay_channel = searchParams.get('pay_channel') || 'asia_pay'
|
const pay_channel = searchParams.get('pay_channel') || 'flywire'
|
||||||
createExternalBill(params).then((ret) => {
|
createExternalBill(params).then((ret) => {
|
||||||
setState({loading: false})
|
setState({loading: false})
|
||||||
navigate(`/pay?bill=${ret.id}&pay_channel=${pay_channel}`, {replace: true})
|
navigate(`/pay?bill=${ret.id}&pay_channel=${pay_channel}`, {replace: true})
|
||||||
|
@ -24,8 +24,8 @@ const PayIndex = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const payChannel = search.get('pay_channel') || 'flywire'
|
// const payChannel = search.get('pay_channel') || 'flywire'
|
||||||
setPayChannel(payChannel)
|
setPayChannel('flywire')
|
||||||
getBillDetail(Number(billId)).then((bill) => {
|
getBillDetail(Number(billId)).then((bill) => {
|
||||||
// 判断bill状态
|
// 判断bill状态
|
||||||
if (bill.status != BillStatus.PENDING) {
|
if (bill.status != BillStatus.PENDING) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user