Commit 6e84fa9a40d31e3a2e3b1ed5ab5c07e1116bc1d2
1 parent
5015440c
授权方式修改
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/orderPay.vue
... | ... | @@ -95,7 +95,7 @@ export default { |
95 | 95 | var code = this.getUrlParam('code'); |
96 | 96 | var local = window.location.href; |
97 | 97 | if (code == null || code === '') { |
98 | - 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' | |
98 | + 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' | |
99 | 99 | } else { |
100 | 100 | return code; |
101 | 101 | } | ... | ... |