调试接口
This commit is contained in:
@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user