- 云开发所有的数据记录顺序乱掉了
云数据库里面的顺序全部乱掉了,可以帮我恢复下么
2022-04-29 - 有没有遇到过在云开发环境下调用微信公众号接口报错的?
在微信小程序云开发环境下调用,结果报错 [info] 调用 本地 云函数 'login' 完成 (耗时 148ms) index.js:41 Error: errCode: -501001 resource system error | errMsg: officialAccount.material.getMaterialCount:fail wx api error: -605108 at callGeneralOpenAPI (D:\project\miniProgramWeChatCouble\miniProgram\cloudfunctions\login\node_modules\wx-server-sdk\index.js:426:19) cloud.openapi({ appid: '微信开发ID' }).officialAccount.material.batchGetMaterial({ type: 'news',offset:0,count:20 }).then(res => { console.log(res) res= res }).catch(err => { err = err console.log(err) })
2022-01-30 - 为什么小程序云开发苹果手机下载图片正常,安卓下载图片失败?
前置:小程序图片是用云存储的通过fileID加载的图片 需求:是当点击图片的时候下载图片 结果:ios端图片下载正常,安卓机下载报错 报错日志为:saveImageToPhotosAlbum:fail invalid file type 图片下载代码如下 wx.authorize({ scope: 'scope.writePhotosAlbum', success:res0=>{wx.cloud.downloadFile({ fileID: this.data.ownImageUrl, // 文件 ID success: res => { wx.saveImageToPhotosAlbum({ filePath: res.tempFilePath, success:sres=>{ wx.hideLoading() wx.showToast({ title: '下载成功!', // 标题 icon: 'success', // 图标类型,默认success duration: 1500 // 提示窗停留时间,默认1500ms }) this.popup.hidePopup(); }, fail:err => { wx.hideLoading() console.log(err)} }) }, fail:err => { wx.hideLoading() console.error} })}, fail: err => { wx.hideLoading() console.log(err)} })
2021-01-28