wx.getSetting({
success(res) { if (!res['scope.record']) {
wx.authorize({
scope: 'scope.record',
success() { // 用户已经同意小程序使用录音功能,后续调用 wx.startRecord 接口不会弹窗询问
wx.startRecord()
}
})
}
}
})
这是文档中代码,从res中根本取不到scope.record。它在res.authSetting['scope.record']中
呵呵,你这不是给企鹅做贡献了嘛。微信团队,大抵除Allen Zhang之外,他皆8090后之后生是也,有如此迅即之迭代能力已是难能可贵矣