From 2a6ff46a4e2c6ebb7b5e68161c54703fe1c2f172 Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Thu, 22 Sep 2022 16:14:28 +0800 Subject: [PATCH] 授权方式修改 --- src/components/dynCodePay.vue | 2 +- src/components/orderPay.vue | 2 +- src/components/pay.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/dynCodePay.vue b/src/components/dynCodePay.vue index 32dadef..82d79a8 100644 --- a/src/components/dynCodePay.vue +++ b/src/components/dynCodePay.vue @@ -110,7 +110,7 @@ export default { var code = this.getUrlParam('code'); var local = window.location.href; if (code == null || code === '') { - window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect' + window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_base&state=1#wechat_redirect' } else { return code; } diff --git a/src/components/orderPay.vue b/src/components/orderPay.vue index 344539f..30c4864 100644 --- a/src/components/orderPay.vue +++ b/src/components/orderPay.vue @@ -83,7 +83,7 @@ export default { var code = this.getUrlParam('code'); var local = window.location.href; if (code == null || code === '') { - window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect' + window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_base&state=1#wechat_redirect' } else { return code; } diff --git a/src/components/pay.vue b/src/components/pay.vue index 3bb11d3..7cb8298 100644 --- a/src/components/pay.vue +++ b/src/components/pay.vue @@ -121,7 +121,7 @@ export default { var code = this.getUrlParam('code'); var local = window.location.href; if (code == null || code === '') { - window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect' + window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_base&state=1#wechat_redirect' } else { return code; } -- libgit2 0.21.4