数据驱动、坚持为客户提供有价值的服务和内容
微信小程序 摄像头 && 录音授权
app.js文件 onShow 事件里面写入
wx.getSetting({ success(res) { if (!res.authSetting['scope.camera']) { //获取摄像头权限 wx.authorize({ scope: '