Commit fddcdb9833949d41aa9f2a4b6ca65367c7a54a45
1 parent
d98e420a
支付成功和失败
Showing
1 changed file
with
4 additions
and
4 deletions
utils/pay.js
... | ... | @@ -77,8 +77,8 @@ module.exports = { |
77 | 77 | signType: n.signType, |
78 | 78 | paySign: n.paySign, |
79 | 79 | orderInfo: n.orderInfo, // 需要新增的 订单 信息 |
80 | - success (res) { | |
81 | - console.log(n), t.showSuccess("支付成功!", e); | |
80 | + success (n) { | |
81 | + t.showSuccess("支付成功!", e); | |
82 | 82 | }, |
83 | 83 | fail (n) { |
84 | 84 | if(!n.errMsg ) { |
... | ... | @@ -87,8 +87,8 @@ module.exports = { |
87 | 87 | return false; |
88 | 88 | } |
89 | 89 | |
90 | - console.log(n), "requestPayment:fail" == n.errMsg ? t.showWarning("支付失败") : "requestPayment:fail cancel" == n.errMsg ? t.showWarning("您已取消支付") : | |
91 | - t.confirmBox("支付失败:" + n.errMsg.substr("requestPayment:fail ".length)), | |
90 | + console.log(n), "requestOrderPayment:fail" == n.errMsg ? t.showWarning("支付失败") : "requestOrderPayment:fail cancel" == n.errMsg ? t.showWarning("您已取消支付") : | |
91 | + t.confirmBox("支付失败:" + n.errMsg.substr("requestOrderPayment:fail ".length)), | |
92 | 92 | "function" == typeof a && a(); |
93 | 93 | } |
94 | 94 | }) | ... | ... |