|
|
|
|
125
|
if (force || wxfirst || !queryCode || queryCode === originCode) {
|
125
|
if (force || wxfirst || !queryCode || queryCode === originCode) {
|
126
|
|
126
|
|
127
|
const local = encodeURIComponent(location.origin + location.pathname)
|
127
|
const local = encodeURIComponent(location.origin + location.pathname)
|
128
|
- const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd3bab568bc42d1de&redirect_uri=${local}&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect`
|
|
|
|
|
128
|
+ const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd3bab568bc42d1de&redirect_uri=${local}&response_type=code&scope=snsapi_base&state=123#wechat_redirect`
|
129
|
window.location.href = url;
|
129
|
window.location.href = url;
|
130
|
}
|
130
|
}
|
131
|
}
|
131
|
}
|