mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 16:26:44 +08:00
修改获取用户信息相关代码逻辑
This commit is contained in:
@@ -211,7 +211,7 @@ export default {
|
||||
if(!code){
|
||||
window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + response.content.appid + '&redirect_uri=' + encodeURIComponent(location.href + '?orderNo=' + orderNo) + '&response_type=code&scope=snsapi_base&state=1#wechat_redirect'
|
||||
}else{
|
||||
|
||||
window.location.href = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid=' + response.content.appid + '&secret=' + response.content.appsecret + '&code=' + code + '&grant_type=authorization_code'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user