为啥我通过微信云函数调用msgSecCheck调用就提示我没有权限,需要怎么做呢
security.msgSecCheck是不是不支持小程序?security.msgSecCheck-v1https://developers.weixin.qq.com/miniprogram/dev/framework/security.msgSecCheck-v1.html#method-http security.msgSecCheckhttps://developers.weixin.qq.com/minigame/dev/api-backend/open-api/sec-check/security.msgSecCheck.html 小程序和小游戏的安全审核api文档不一致。他们的接口可以共用吗?
07-27var index = this.data.nowIdx; var im = this.data.imgArr[index] wx.downloadFile({ url: im.imageUrl, success: res=> { if (res.statusCode === 200) { wx.saveImageToPhotosAlbum({ filePath: res.tempFilePath, success: res2 => { wx.showToast({ title: '保存成功', icon: 'success', duration: 2000 }); }, fail: res2 => { if (res2.errMsg === 'saveImageToPhotosAlbum:fail cancel') { wx.showToast({ title: '保存失败', icon: 'none', duration: 2000 }); } else { this.setData({ tipSaveImg: true }); } } }) } else { console.log(res) wx.showToast({ title: '图片下载失败', }) } }, fail:res=> { wx.showToast({ title: '图片下载失败', }) console.log(res) } })
微信小程序下载文件直接失败小程序下载图片,直接报失败[图片]
2019-12-04