收藏
回答

wx.addFileToFavorites收藏zip文件在微信我的收藏中文件类型展示为null?

回答关注问题邀请回答
收藏

3 个回答

  • 社区技术运营专员--阳光
    社区技术运营专员--阳光
    2天前

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2天前
    有用
    回复 2
    • Lee
      Lee
      2天前
      wx.downloadFile({
                url: fileInfo.url,
                success: (res) => {
                  console.log('文件下载成功')
                  const tempFilePath = res.tempFilePath
              wx.addFileToFavorites({
                filePath: tempFilePath,
                fileName: fileInfo.title + '.' + fileInfo.type,
                success () {
                  wx.showToast({
                    title: '收藏成功!',
                    icon: 'none'
                  })
                },
                fail (err) {
                  console.log('收藏失败', err)
                }
              })
                }
              })
      2天前
      回复
    • Lee
      Lee
      2天前
      安卓机展示正常 ios机型都不能正常展示
      2天前
      回复
  • 微盟
    微盟
    星期一 16:40

    微信版本问题?

    星期一 16:40
    有用
    回复 1
    • Lee
      Lee
      2天前
      8.0.56 都是最新的微信版本
      2天前
      回复
  • Lee
    Lee
    星期一 13:30

    安卓正常 iOS机型xianshi不对

    星期一 13:30
    有用
    回复
登录 后发表内容