wx.downloadFile({
url: 'https://api.sdccx.cn/files/202106/1622686620322_849954819316645888.png?3.png',
success: function (res) {
wx.showToast({
title: '成功!',icon:"none"
})
},
fail: function (err) {
wx.showToast({title: '下载失败',icon:"none"})
console.log('下载失败:', err);
//报的错回文
/*
{errMsg: "downloadFile:fail createDownloadTask:fail exceed max download connection count 10"}
*/
},
})