支付弹窗不使用sse改调用后端接口返回
This commit is contained in:
@@ -80,12 +80,14 @@ export async function completeResource(props: {
|
||||
}) {
|
||||
return callByUser('/api/trade/complete', props)
|
||||
}
|
||||
|
||||
type PayCloseData = {
|
||||
status: 0 | 1 | 2
|
||||
}
|
||||
export async function payClose(props: {
|
||||
trade_no: string
|
||||
method: number
|
||||
}) {
|
||||
return callByUser('/api/trade/cancel', props)
|
||||
return callByUser<PayCloseData>('/api/trade/finish', props)
|
||||
}
|
||||
|
||||
export async function getPrice(props: CreateResourceReq) {
|
||||
|
||||
Reference in New Issue
Block a user