支付弹窗不使用sse改调用后端接口返回

This commit is contained in:
Eamon-meng
2026-06-18 18:13:30 +08:00
parent c297c2330e
commit c2465ece04
3 changed files with 45 additions and 39 deletions

View File

@@ -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) {