微信公众号开发 ,redirect_uri域名还是与后台配置不一致
<p>测试账号地址:</p><p>https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index</p>
<p>https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login</p>
<p> </p>
<p>登录后进行设置:</p>
<p> </p>
<h2>测试账号信息:</h2>
<p><img src="https://img2018.cnblogs.com/blog/68725/201908/68725-20190812154647667-1216769141.png"></p>
<p> </p>
<h2> 接口配置信息</h2>
<p> <img src="https://img2018.cnblogs.com/blog/68725/201908/68725-20190812154709399-1306367464.png"></p>
<p> </p>
<h2> JS接口安全域名</h2>
<p> <img src="https://img2018.cnblogs.com/blog/68725/201908/68725-20190812154748576-155657451.png"></p>
<p> </p>
<h2>网页帐号 网页授权获取用户基本信息</h2>
<p> </p>
<p> <img src="https://img2018.cnblogs.com/blog/68725/201908/68725-20190812154444483-1649057914.png"></p>
<p><img src="https://img2018.cnblogs.com/blog/68725/201908/68725-20190812154827529-400918391.png"></p>
<p> </p>
<h2> 注意:</h2>
<ul>
<li>上面几项url和域名一定要相同,比如都是cs.xx.com</li>
<li>url一定要带http,比如http://cs.xx.com</li>
<li>域名不能带http,比如cs.xx.com</li>
<li>可能是你的公众号到期,需要交费啦,哈哈</li>
</ul>
<p> </p>
<p><strong>后台系统的请求日志(<span style="color: rgba(255, 0, 0, 1)">加粗为重点,必须和公众号设置的参数一致</span>):</strong></p>
<p><strong>appid:测试账号的appid</strong></p>
<p><strong>redirect_uri:是否为设置的url(http://www.xxx.com)</strong></p>
<p>https://open.weixin.qq.com/connect/oauth2/authorize?appid=<strong>wx69fxxxxxxxxed8</strong>&redirect_uri=<strong>http%3a%2f%2fwww.xxx.com%2fvShop%2fdefault</strong>&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect </p><br><br>
来源:https://www.cnblogs.com/gougou1981/p/11340560.html
頁:
[1]