调试接口

This commit is contained in:
wangxiaowei
2025-12-22 19:06:04 +08:00
parent ca0d16cf05
commit 90e9448b68
15 changed files with 220 additions and 152 deletions

View File

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