diff --git a/utils/pay.js b/utils/pay.js index 924f420..5725f43 100644 --- a/utils/pay.js +++ b/utils/pay.js @@ -77,8 +77,8 @@ module.exports = { signType: n.signType, paySign: n.paySign, orderInfo: n.orderInfo, // 需要新增的 订单 信息 - success (res) { - console.log(n), t.showSuccess("支付成功!", e); + success (n) { + t.showSuccess("支付成功!", e); }, fail (n) { if(!n.errMsg ) { @@ -87,8 +87,8 @@ module.exports = { return false; } - console.log(n), "requestPayment:fail" == n.errMsg ? t.showWarning("支付失败") : "requestPayment:fail cancel" == n.errMsg ? t.showWarning("您已取消支付") : - t.confirmBox("支付失败:" + n.errMsg.substr("requestPayment:fail ".length)), + console.log(n), "requestOrderPayment:fail" == n.errMsg ? t.showWarning("支付失败") : "requestOrderPayment:fail cancel" == n.errMsg ? t.showWarning("您已取消支付") : + t.confirmBox("支付失败:" + n.errMsg.substr("requestOrderPayment:fail ".length)), "function" == typeof a && a(); } })