调试接口

This commit is contained in:
wangxiaowei
2025-12-23 03:30:22 +08:00
parent 90e9448b68
commit 3af440cd21
17 changed files with 149 additions and 82 deletions

View File

@ -87,15 +87,15 @@ export async function handleTRConfirmOrderHooks(orderId: number) {
/**
* 订单退款
* @param orderId 订单ID
* @param id 订单的主键
* @param orderType 订单类型
*/
export async function handleRefundOrderHooks(orderId: number, orderType: number) {
export async function handleRefundOrderHooks(id: number, orderType: number) {
try {
uni.showLoading({ title: '退款中...' })
const res = await submitRefund({ order_id: orderId, order_type: orderType })
const res = await submitRefund({ id, order_type: orderType })
await refund({ id: res.id })
toast.info('退款成功,退款有延迟,请耐心等待,注意查收')
toast.info('退款成功,注意查收')
// 退款延迟-1.5秒钟后再执行
setTimeout(() => {