From fddcdb9833949d41aa9f2a4b6ca65367c7a54a45 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Thu, 26 Aug 2021 09:35:03 +0800 Subject: [PATCH] 支付成功和失败 --- utils/pay.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); } }) -- libgit2 0.21.4