diff --git a/src/api/pay/order/index.ts b/src/api/pay/order/index.ts index 71960a8a..6460c4d1 100644 --- a/src/api/pay/order/index.ts +++ b/src/api/pay/order/index.ts @@ -84,8 +84,14 @@ export const getOrderPage = async (params: OrderPageReqVO) => { } // 查询详情支付订单 -export const getOrder = async (id: number) => { - return await request.get({ url: '/pay/order/get?id=' + id }) +export const getOrder = async (id: number, sync?: boolean) => { + return await request.get({ + url: '/pay/order/get', + params: { + id, + sync + } + }) } // 获得支付订单的明细 diff --git a/src/views/pay/cashier/index.vue b/src/views/pay/cashier/index.vue index 12723dba..46d82f38 100644 --- a/src/views/pay/cashier/index.vue +++ b/src/views/pay/cashier/index.vue @@ -231,7 +231,7 @@ const getDetail = async () => { goReturnUrl('cancel') return } - const data = await PayOrderApi.getOrder(id.value) + const data = await PayOrderApi.getOrder(id.value, true) payOrder.value = data // 1.2 无法查询到支付信息 if (!data) {