小程序调用 wx.chooseMedia 错误代码101。关键我小程序隐私政策也更新了呀
wx.chooseMedia({
count: 9,
mediaType: ['image','video'],
sourceType: ['album', 'camera'],
maxDuration: 30,
camera: 'back',
success(res) {
console.log(res.tempFiles.tempFilePath)
console.log(res.tempFiles.size)
}
})
在app.json内声明一下权限
"permission": {
"scope.XXXXX": {
"desc": "XXXXXX"
}
}