更新充值和购买支付宝接口和传参,我的账单列表更新&解决banner拉伸&更新登录的访问令牌
This commit is contained in:
@@ -2,20 +2,28 @@
|
||||
import {callByUser, callPublic} from '@/actions/base'
|
||||
|
||||
export async function RechargePrepare(props: {
|
||||
amount: string
|
||||
amount: number
|
||||
platform: number
|
||||
method: number
|
||||
}) {
|
||||
return callByUser<{
|
||||
trade_no: string
|
||||
pay_url: string
|
||||
}>('/api/user/recharge/prepare', props)
|
||||
}>('/api/trade/create', {
|
||||
platform: props.platform,
|
||||
method: props.method,
|
||||
type: 2,
|
||||
recharge: {
|
||||
amount: props.amount,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
export async function RechargeComplete(props: {
|
||||
trade_no: string
|
||||
method: number
|
||||
}) {
|
||||
return callByUser('/api/user/recharge/complete', props)
|
||||
return callByUser('/api/trade/complete', props)
|
||||
}
|
||||
|
||||
export async function Identify(props: {
|
||||
|
||||
Reference in New Issue
Block a user