时间:2019-05-03 来源:小程序工厂
没有任何报错信息。
代码逻辑如下:
wx.getSetting({
success(settings) {
console.log('获取授权信息:', settings)
if (settings && !settings.authSetting['scope.record']) {
wx.authorize({
scope: 'scope.record',
success() {
RecorderManager = wx.getRecorderManager()
backgroundAudioManager.title = '录制我的跨年演讲'
backgroundAudioManager.src = `${ResourcesBaseUrl}MTU0NDY5NDUyMjgw.mp3`
that.RecorderManagerWatch()
},
fail() {
console.log('询问失败')
wx.openSetting({
success(open) {
if (!open.authSetting['scope.record']) return false
}
})
}
})
} else {
RecorderManager = wx.getRecorderManager()
backgroundAudioManager.title = '录制我的跨年演讲'
backgroundAudioManager.src = `${ResourcesBaseUrl}MTU0NDY5NDUyMjgw.mp3`
that.RecorderManagerWatch()
}
}
})
报错信息是什么?