File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1717 <view class =" tip-text ss-m-b-30" v-if =" payResult === 'success'" >支付成功</view >
1818 <view class =" tip-text ss-m-b-30" v-if =" payResult === 'failed'" >支付失败</view >
1919 <view class =" tip-text ss-m-b-30" v-if =" payResult === 'closed'" >该订单已关闭</view >
20- <view class =" tip-text ss-m-b-30" v-if =" payResult === 'waiting'" >检测支付结果 ...</view >
20+ <view class =" tip-text ss-m-b-30" v-if =" payResult === 'waiting'" >正在查询支付结果 ...</view >
2121 <view class =" pay-total-num ss-flex" v-if =" payResult === 'success'" >
2222 <view >¥{{ fen2yuan(state.orderInfo.price) }}</view >
2323 </view >
101101 async function getOrderInfo (id ) {
102102 state .counter ++ ;
103103 // 1. 加载订单信息
104- const { data , code } = await PayOrderApi .getOrder (id);
104+ const { data , code } = await PayOrderApi .getOrder (id, true );
105105 if (code === 0 ) {
106106 state .orderInfo = data;
107107 if (! state .orderInfo || state .orderInfo .status === 30 ) {
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export default class SheepPay {
9393 } ;
9494 // 特殊逻辑:微信公众号、小程序支付时,必须传入 openid
9595 if ( [ 'wx_pub' , 'wx_lite' ] . includes ( channel ) ) {
96- const openid = await sheep . $platform . useProvider ( 'wechat' ) . getOpenid ( ) ;
96+ const openid = await sheep . $platform . useProvider ( 'wechat' ) . getOpenid ( true ) ;
9797 // 如果获取不到 openid,微信无法发起支付,此时需要引导
9898 if ( ! openid ) {
9999 this . bindWeixin ( ) ;
You can’t perform that action at this time.
0 commit comments