优化微信网页登录

This commit is contained in:
lemon橪
2021-09-10 10:45:37 +08:00
parent 58f33b05dd
commit fe0d888da0
4 changed files with 203 additions and 56 deletions

View File

@@ -260,7 +260,7 @@
},
fail: (e) => {
console.log(e);
console.log(this);
this.exception = e;
uni.showModal({
content: "支付失败,如果您已支付,请勿反复支付",
@@ -298,7 +298,7 @@
WeixinJSBridge.invoke(
"getBrandWCPayRequest",
response.result,
function(res) {
(res) => {
if (res.err_msg == "get_brand_wcpay_request:ok") {
// 使用以上方式判断前端返回,微信团队郑重提示:
//res.err_msg将在用户支付成功后返回ok但并不保证它绝对可靠。