Showing
1 changed file
with
5 additions
and
4 deletions
@@ -2,7 +2,7 @@ import payModel from '../models/pay/pay'; | @@ -2,7 +2,7 @@ import payModel from '../models/pay/pay'; | ||
2 | import commonModel from '../models/common'; | 2 | import commonModel from '../models/common'; |
3 | import Yas from '../common/yas'; | 3 | import Yas from '../common/yas'; |
4 | 4 | ||
5 | -const PAYMENT_CODE = '45'; | 5 | +const PAYMENT_CODE = '56'; // 红人分销支付类型 |
6 | 6 | ||
7 | let app = getApp(); | 7 | let app = getApp(); |
8 | let router = global.router; | 8 | let router = global.router; |
@@ -78,9 +78,10 @@ function wechatPay(order, callback) { | @@ -78,9 +78,10 @@ function wechatPay(order, callback) { | ||
78 | }); | 78 | }); |
79 | 79 | ||
80 | payModel.wechatPay({ | 80 | payModel.wechatPay({ |
81 | - order_code: orderCode, | ||
82 | - payment_code: PAYMENT_CODE, | ||
83 | - '3rd_session': wechatSession | 81 | + app_id: app.getAppId(), |
82 | + order_code: orderCode, | ||
83 | + payment_code: PAYMENT_CODE, | ||
84 | + '3rd_session': wechatSession | ||
84 | }).then(res => { | 85 | }).then(res => { |
85 | wx.hideToast(); | 86 | wx.hideToast(); |
86 | 87 |
-
Please register or login to post a comment