更新充值和购买支付宝接口和传参,我的账单列表更新&解决banner拉伸&更新登录的访问令牌
This commit is contained in:
@@ -76,11 +76,21 @@ export async function prepareResource(props: {
|
||||
return await callByUser<{
|
||||
trade_no: string
|
||||
pay_url: string
|
||||
}>('/api/resource/create/prepare', props)
|
||||
}>('/api/trade/create', {
|
||||
platform: props.payment_platform,
|
||||
method: props.payment_method,
|
||||
type: 1,
|
||||
resource: {
|
||||
type: props.type,
|
||||
short: props.short,
|
||||
long: props.long,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
export async function completeResource(props: {
|
||||
trade_no: string
|
||||
method: number
|
||||
}) {
|
||||
return await callByUser('/api/resource/create/complete', props)
|
||||
return callByUser('/api/trade/complete', props)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user