更新用户隐私协议后还是 ail api scope is not declared in the privacy agreement怎么办??!
昨天明明可以了,开了个会出来,又不行了,真要命啊啊啊啊啊啊啊啊啊啊。
·
saveImageToPhotosAlbum:fail api scope is not declared in the privacy agreement
昨天明明可以了,开了个会出来,又不行了,真要命啊啊啊啊啊啊啊啊啊啊(现在回想起来可能是因为我把发布的那个版本删了,因为那个只是用来测试用的emmmm)
微信小程序后台看已经有写入图片权限了,可是手机上授权页面的隐私协议一直都没有
更新用户隐私协议时一定要写 保存发票图片,保存图片会不给过,这群天杀的审核员,一下过一下不过的,坑惨我了.......
更新协议后一定要发布发布发布,然后点开授权页面一定要看到新增的那个权限才行。
manifest.json一定要加
"permission" : {
"scope.userLocation" : {
"desc" : "提供准确的定位服务"
},
"scope.writePhotosAlbum" : {
"desc" : "用于将图片保存至您的相册"
}
},



更新协议这里一定要写清楚,有时候写清楚了就给更新了,没写清楚就更新不上,
写保存图片不行,一定要写保存XX图片,可能审核员不一样吧,第一次保存图片能过,后边死活过不了了emmmmmm,
找了我一整天呀啊啊啊啊啊啊啊啊啊啊啊啊啊

小程序新版本一定要发布,一定要发布,发布到正式环境才可以,这个框终于弹出来了,流下了绝望无助,又喜极而泣的泪水,emmmmmmm

最后附上我的代码:
uni.downloadFile({
url: ioii_invoice_pic_url,
// #ifdef MP-WEIXIN
filePath: wx.env.USER_DATA_PATH + "/" + filename,
// #endif
success: (res) => {
//console.log('res', res)
this.downloading = false
if (res.statusCode === 200) {
// #ifdef MP-WEIXIN
const filePath = res.filePath
if (fileExt === 'jpg' || fileExt === 'jpeg' || fileExt === 'png' || fileExt ===
'gif') {
//如果是图片走这里
uni.saveImageToPhotosAlbum({ //保存图片到系统相册。
filePath: filePath, //图片文件路径
success: function() {
uni.showToast({
title: '发票保存成功',
icon: 'none',
});
uni.previewImage({
current: 0,
urls: [ioii_invoice_pic_url],
})
},
fail: function(e) {
console.log(e);
uni.showToast({
title: '发票保存失败',
icon: 'none',
});
}
});
} else {
wx.openDocument({
filePath: filePath,
fileType: fileExt,
showMenu: true,
success: (res) => {
console.log('打开文档成功')
},
fail: function(err) {
console.error('打开失败', err);
}
})
}
// #endif
}
},
fail: (err) => {
console.error('', err)
this.downloading = false
//this.common.toast(err, 2000, false)
this.common.toast('下载失败', 2000, false)
}
})
更多推荐


所有评论(0)