ソースを参照

支付接口联调

yuxingxing 2 年 前
コミット
973fd1107d
1 ファイル変更3 行追加2 行削除
  1. 3 2
      components/payment/index.vue

+ 3 - 2
components/payment/index.vue

@@ -151,8 +151,8 @@ export default {
 							provider: 'wxpay',
 							timeStamp: res.data.timestamp + '',
 							nonceStr: res.data.noncestr,
-							package: res.data.prepayid,
-							signType: 'MD5',
+							package: 'prepay_id='+res.data.prepayid,
+							signType: 'RSA',
 							paySign: res.data.sign,
 							success: function (res) {
 								uni.hideLoading();
@@ -166,6 +166,7 @@ export default {
 								});
 							},
 							fail: function (e) {
+								console.log(e.errMsg);
 								uni.hideLoading();
 								return that.$util.Tips({
 									title: that.$t(`取消支付`)