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 參考