From 12b302b22949b16d5fb69b525d751bc39eb9414a Mon Sep 17 00:00:00 2001 From: VK <370725567@qq.com> Date: Thu, 19 Dec 2024 19:48:31 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E8=A1=A5=E5=85=85uni-pay-x=E7=BC=BA?= =?UTF-8?q?=E7=9C=81=E7=9A=84=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-pay-x/components/uni-pay/uni-pay.uvue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/uni_modules/uni-pay-x/components/uni-pay/uni-pay.uvue b/uni_modules/uni-pay-x/components/uni-pay/uni-pay.uvue index 2224b3dd..5dce4cc3 100644 --- a/uni_modules/uni-pay-x/components/uni-pay/uni-pay.uvue +++ b/uni_modules/uni-pay-x/components/uni-pay/uni-pay.uvue @@ -419,7 +419,7 @@ console.log("requestPaymentFail", JSON.stringify(err)) let errCode = err.errCode; let errMsg = err.errMsg; - if (errCode == 700713) { + if (errCode == 701110) { // 用户取消支付 this.$emit("cancel", err); } else if (errMsg.indexOf("fail cancel") > -1) { @@ -456,7 +456,7 @@ return { errCode: -1, errMsg: (err as Error).message - } + } as UTSJSONObject } }, // 发起退款(此接口需要admin角色才可以访问) @@ -468,7 +468,7 @@ return { errCode: -1, errMsg: (err as Error).message - } + } as UTSJSONObject } }, // 查询退款(查询退款情况) @@ -480,7 +480,7 @@ return { errCode: -1, errMsg: (err as Error).message - } + } as UTSJSONObject } }, // 关闭订单 @@ -492,7 +492,7 @@ return { errCode: -1, errMsg: (err as Error).message - } + } as UTSJSONObject } }, // 获取支持的支付供应商 @@ -504,7 +504,7 @@ return { errCode: -1, errMsg: (err as Error).message - } + } as UTSJSONObject } }, // 获取支付配置内的appid(主要用于获取获取微信公众号的appid,用以获取code) @@ -516,7 +516,7 @@ return { errCode: -1, errMsg: (err as Error).message - } + } as UTSJSONObject } }, // 根据code获取openid @@ -528,7 +528,7 @@ return { errCode: -1, errMsg: (err as Error).message - } + } as UTSJSONObject } }, // 验证iosIap苹果内购支付凭据 @@ -540,7 +540,7 @@ return { errCode: -1, errMsg: (err as Error).message - } + } as UTSJSONObject } }, // 支付成功后的逻辑 -- GitLab