在微信公众平台中snsapi_base作用域下不弹出授权页面,直接跳转,只能获取用户openid,使用网页接口获取用户详细信息会返回{"errcode":48001,"errmsg":"api unauthorized"}。
此时使用得的openid调用获取用户基本信息接口:
https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN完成获取用户基本信息的操作。
在微信公众平台中snsapi_base作用域下不弹出授权页面,直接跳转,只能获取用户openid,使用网页接口获取用户详细信息会返回{"errcode":48001,"errmsg":"api unauthorized"}。
此时使用得的openid调用获取用户基本信息接口:
https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN完成获取用户基本信息的操作。