这是代码
download:function(){
wx.cloud.downloadFile({
fileID:'cloud://jdk-874b64.6a64-jdk-874b64/xxx.txt',
}).then(res=>{
wx.saveImageToPhotosAlbum({
filePath: res.tempFilePath,
success:res=>{
console.log('wow')
}
})
})
},
然而我下载并且存储下来的每次都是一个.xml文件,并且这个xml文件的内容是这样的
<?xml version='1.0' encoding='utf-8' ?>
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Resource>6a64-jdk-874b64-1256746843.cos.ap-shanghai.myqcloud.com/xxx.txt&skip_domain_check=true</Resource>
<RequestId>NWJlNzhiYzdfMzlhNzAzMDlfODVjN19hNWJiMGU=</RequestId>
<TraceId>OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OWExNmY2NDVlNWI0NWZiZTdjNmI0N2ZlYjU2ODMyMTY5YjVmN2FlNjYzOTQ0N2E0YTU0NmU3ZTAyYzE5YzRiNjI=</TraceId>
</Error>
首先我文件肯定是存在的,请问如何做呢?
大家跳转小程序的时候有没有遇到过这个问题啊?navigateToMiniProgramAppIdList