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 2224b3dd70cd46e0c2b3416fc1fe0d0ae9ff6ddb..5dce4cc334de1504e322f812220317234e104715 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 } }, // 支付成功后的逻辑