调试接口
This commit is contained in:
@ -95,9 +95,13 @@ export async function handleRefundOrderHooks(orderId: number, orderType: number)
|
||||
uni.showLoading({ title: '退款中...' })
|
||||
const res = await submitRefund({ order_id: orderId, order_type: orderType })
|
||||
await refund({ id: res.id })
|
||||
toast.info('退款成功')
|
||||
uni.hideLoading()
|
||||
return true
|
||||
toast.info('退款成功,退款有延迟,请耐心等待,注意查收')
|
||||
|
||||
// 退款延迟-1.5秒钟后再执行
|
||||
setTimeout(() => {
|
||||
uni.hideLoading()
|
||||
return true
|
||||
}, 1500)
|
||||
} catch (error) {
|
||||
toast.info('退款失败')
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user