网页授权获取用户基本信息,获取code,返回多次
朝5晚9 2017-03-27 11:18:13 最近在微信开发获取用户基本信息的过程中,发现一个问题。
访问
https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect
微信有时返回一次,
有时返回多次,
下面的链接。
https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code
并且返回的code都能使用。
有相同情况的朋友吗