我有做那个兼容判断 if (wx.canIUse('getUpdateManager')){}
小程序开发版本号如何获取我想获取小程序当前正式版本号(提交审核成功后的小程序版本号),如何获取?哪位大神指教一下
2018-10-29小程序对wx.getUpdateManager()做了兼容处理if (wx.canIUse('getUpdateManager')){}
wx.getUpdateManager is not a function调用方法: onLaunch: function () { // wx.showToast({ // title: 'app.js', // }) if (wx.canIUse('getUpdateManager')){ const updateManager = wx.getUpdateManager() updateManager.onCheckForUpdate(function (res) { // wx.showToast({ // title: "'" + JSON.stringify(res) +"'" // }) // 请求完新版本信息的回调 //console.log(res) console.log("res.hasUpdate:" + res.hasUpdate) }) updateManager.onUpdateReady(function () { wx.showModal({ title: '更新提示', content: '新版本已经准备好,是否重启应用?', success: function (res) { if (res.confirm) { // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启 updateManager.applyUpdate() } } }) }) updateManager.onUpdateFailed(function () { // 新的版本下载失败 wx.showModal({ title: '更新提示', content: '新版本下载失败', showCancel: false }) }) } }, - 当前 Bug 的表现[图片]
2018-10-22已解决,ssl证书问题
真机测试安卓request请求失败,ios系统请求成功真机测试安卓手机request请求失败,ios系统请求成功
2018-06-06