diff --git a/pages/pay/result.vue b/pages/pay/result.vue index c52b1195..e63e5bf8 100644 --- a/pages/pay/result.vue +++ b/pages/pay/result.vue @@ -17,7 +17,7 @@ 支付成功 支付失败 该订单已关闭 - 检测支付结果... + 正在查询支付结果... ¥{{ fen2yuan(state.orderInfo.price) }} @@ -101,7 +101,7 @@ async function getOrderInfo(id) { state.counter++; // 1. 加载订单信息 - const { data, code } = await PayOrderApi.getOrder(id); + const { data, code } = await PayOrderApi.getOrder(id, true); if (code === 0) { state.orderInfo = data; if (!state.orderInfo || state.orderInfo.status === 30) { diff --git a/sheep/platform/pay.js b/sheep/platform/pay.js index ced3aa07..9655f8ae 100644 --- a/sheep/platform/pay.js +++ b/sheep/platform/pay.js @@ -93,7 +93,7 @@ export default class SheepPay { }; // 特殊逻辑:微信公众号、小程序支付时,必须传入 openid if (['wx_pub', 'wx_lite'].includes(channel)) { - const openid = await sheep.$platform.useProvider('wechat').getOpenid(); + const openid = await sheep.$platform.useProvider('wechat').getOpenid(true); // 如果获取不到 openid,微信无法发起支付,此时需要引导 if (!openid) { this.bindWeixin();