소스 검색

修复,支付bug

wangxin 6 년 전
부모
커밋
c4b5cae49c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      template/carts/index.js

+ 1 - 1
template/carts/index.js

@@ -144,7 +144,7 @@ Page({
         wx.requestPayment({
           timeStamp: pay.time,
           nonceStr: pay.nonce_str,
-          package: pay.prepay_id,
+          package: 'prepay_id=' + pay.prepay_id,
           signType: pay.sign_type,
           paySign: pay.sign,
           success: function(){//微信支付成功