文件下APi wx.downloadFile 传入 filePath 报错

发布于 6 年前作者 chaoqian12598 次浏览最后编辑 6 年前来自 ask
  • 当前 Bug 的表现(可附上截图)

  • 预期表现

  • 复现路径

  • 提供一个最简复现 Demo

  wx.downloadFile({
       url:vue.imgrSrc,   
      filePath:wx.env.USER_DATA_PATH+'/qrcode_unli.jpg',
                    fail:function(e){
                        console.log("失败")
                        console.log(e)
                    },
                    success:function(e){}
})

运行 报  stat:fail parameter error: parameter.path should be String instead of Undefined;   但不影响程序运行

实测 去掉 __filePath  就不会有报错信息 __

__
__

1 回复
ping70
ping701 楼4 年前

已知问题,不影响接口使用,2.7.1 会修复