Commit 2a6ff46a4e2c6ebb7b5e68161c54703fe1c2f172
1 parent
b3b129d1
授权方式修改
Showing
3 changed files
with
3 additions
and
3 deletions
src/components/dynCodePay.vue
... | ... | @@ -110,7 +110,7 @@ export default { |
110 | 110 | var code = this.getUrlParam('code'); |
111 | 111 | var local = window.location.href; |
112 | 112 | if (code == null || code === '') { |
113 | - 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' | |
113 | + 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' | |
114 | 114 | } else { |
115 | 115 | return code; |
116 | 116 | } | ... | ... |
src/components/orderPay.vue
... | ... | @@ -83,7 +83,7 @@ export default { |
83 | 83 | var code = this.getUrlParam('code'); |
84 | 84 | var local = window.location.href; |
85 | 85 | if (code == null || code === '') { |
86 | - 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' | |
86 | + 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' | |
87 | 87 | } else { |
88 | 88 | return code; |
89 | 89 | } | ... | ... |
src/components/pay.vue
... | ... | @@ -121,7 +121,7 @@ export default { |
121 | 121 | var code = this.getUrlParam('code'); |
122 | 122 | var local = window.location.href; |
123 | 123 | if (code == null || code === '') { |
124 | - 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' | |
124 | + 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' | |
125 | 125 | } else { |
126 | 126 | return code; |
127 | 127 | } | ... | ... |