微信公众号 “网络出错,轻触屏幕重新加载” -1202

1 前言

调用微信网页授权https://open.weixin.qq.com/connect/oauth2/authorize...后,就显示“网络出错,轻触屏幕重新加载”。

https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdb****&redirect_uri=https://example.demo.info/mobile/WeiXinPay/index&response_type=code&scope=snsapi_base&state=STATE&connect_redirect=1#wechat_redirect

服务器环境:基于Apache配置ssl(windows server 2012),只能用https访问

2 原因

网上搜索的结果基本上就是说系统时间的问题,把系统时间设置为24小时制就可以了。

还有种说法是可能域名没有备案,可是域名是备案过,其它都能访问的。所以排除这两种情况。

我用的是scope=nsapi_base方式,redirect_uri是https的,结果用微信开发者工具调试,可以授权成功没问题,但是在苹果版本微信的公众号里面就出现上面描述的问题,于是把https改成http,就可以了。

 3 参考

1.微信公众号 “网络出错,轻触屏幕重新加载” 

原文地址:https://www.cnblogs.com/fanbi/p/10161573.html