wx.downloadFile({
url: url,
success: res => {
console.log("---下载完成---");
console.log(res.tempFilePath);
// 在data中记录缓存的下一条音频
// this.setData({
// tempFilePath: res.tempFilePath
// });
const backgroundAudioManager = wx.getBackgroundAudioManager();
backgroundAudioManager.src = res.tempFilePath
// this.playAudio(nextItem);
// this.play();
}
});
会报错 10001,手机号码344显示格式+微信小程序开发。
我看到之前有人遇到过此问题:
https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=c7b223db52aff88b3c3a15f2fb5ddfc6
然后官方更新日志也说明修复了,为什么还是播放失败呢?

本文来自微信小程序开发者论坛 -微信小程序工厂 http://www.xcxgc.com,转载请保留,开发微信小程序、定制微信小程序来微信小程序工厂网。
网友回复
ni**回复:
麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题