微信服务号网页授权配置:网页授权域名和获取code时redirect_uri一致;
// 第一步:用户同意授权,获取codeString url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + wxAppID +"&redirect_uri=" + wxUrl +"&response_type=code" +"&scope=snsapi_base" +"&state=STATE#wechat_redirect";
微信测试号网页授权配置:网页授权域名和获取code时redirect_uri一致;