1模拟手机摇晃,2播放本地音频
1开发者工具没有模拟手机摇晃。 2playVoice播放本地音频不生效,有输出下载的文件的路径,没报任何错误消息。 wx.downloadFile({ url: app.musicFilePath, success: function(res) { console.log(res.tempFilePath) wx.playVoice({ filePath: res.tempFilePath, fail: function(e){console.log(e)} }) }, fail: function(e){console.log(e)} })