From 74e04279c2a46989fd04711c3747167119156cba Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 24 Sep 2024 09:05:08 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91=E6=94=AF=E4=BB=98=EF=BC=9A=E6=9F=A5=E8=AF=A2=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E8=AE=A2=E5=8D=95=E6=97=B6=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20sync=20=E4=B8=BB=E5=8A=A8=E8=BD=AE=E8=AF=A2=EF=BC=8C?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=94=AF=E4=BB=98=E5=AE=9D=E3=80=81=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=AD=98=E5=9C=A8=E5=BB=B6=E8=BF=9F=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/pay/order/index.ts | 10 ++++++++-- src/views/pay/cashier/index.vue | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) 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) {