请问客户使用微信扫描二维码时,通过重定向获取到的authCode 在获取到openid 后,如何在客户不授权的情况下获取到客户的unionId???
WxAccessTokenResult accessTokenResult = wxutil.accessToken("https://api.weixin.qq.com/sns/oauth2/access_token",authCode, appId, appsecret);
根据如上获取到的accessToken 和 Openid 获取 unionId 也获取不到
sb.append("https://api.weixin.qq.com/sns/userinfo?access_token=").append(accessToken).append("&openid=").append(openId).append("&lang=zh_CN");

你好,服务号不支持扫码登录
1. 绑定开发平台
2. 关注服务号可以静默授权获取到code
3. 非关注用户只能授权获取到code
已经拿到authCode后,如何用authCode获取openid和unionId 呢?