微信 ios端config配置失败 android端正常

现象:

两套环境:a,b

- a b
android 正常 正常
ios 异常 正常
wx.ready不执行

原因:

引入的WX JS:

<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>

a环境https,b环境http,而引入的wx.js是http

结论

如果你页面启用了https,务必引入 https😕/res.wx.qq.com/open/js/jweixin-1.0.0.js ,否则将无法在iOS9.0以上系统中成功使用JSSDK

感谢(http://www.voidcn.com/article/p-vsdcfxnr-brz.html)

posted @ 2019-12-25 14:50  YanjieZ  阅读(1266)  评论(0编辑  收藏  举报
Yanjie Z 的一些学习、踩坑、研究的记录,若有问题欢迎指正