Merge branch 'feature/cart' into 'release/5.4.1'
支付宝支付CODE See merge request !314
Showing
1 changed file
with
5 additions
and
4 deletions
@@ -20,9 +20,8 @@ const logger = global.yoho.logger; | @@ -20,9 +20,8 @@ const logger = global.yoho.logger; | ||
20 | 20 | ||
21 | // 支付方式 | 21 | // 支付方式 |
22 | const payments = { | 22 | const payments = { |
23 | - alipay: 33, | ||
24 | - wechat: 22, | ||
25 | - alibank: 42 | 23 | + alipay: 18, |
24 | + wechat: 22 | ||
26 | }; | 25 | }; |
27 | 26 | ||
28 | // 资源位 | 27 | // 资源位 |
@@ -215,7 +214,9 @@ const procOrderData = (payResult, uid, sessionKey) => { | @@ -215,7 +214,9 @@ const procOrderData = (payResult, uid, sessionKey) => { | ||
215 | } | 214 | } |
216 | 215 | ||
217 | if (_.round(parseFloat(amount), 2) !== _.round(parseFloat(payResult.totalFee), 2)) { | 216 | if (_.round(parseFloat(amount), 2) !== _.round(parseFloat(payResult.totalFee), 2)) { |
218 | - logger.warn('front pay success but the amount is not same.', { payResult: payResult, order: order }); | 217 | + logger.warn('front pay success but the amount is not same.', { |
218 | + payResult: payResult, order: order | ||
219 | + }); | ||
219 | return { | 220 | return { |
220 | code: 415, | 221 | code: 415, |
221 | message: '支付金额与订单金额不一致,订单状态更新失败!' | 222 | message: '支付金额与订单金额不一致,订单状态更新失败!' |
-
Please register or login to post a comment