canvasToTempFilePath 调用一直进入 fail

发布于 7 年前作者 xia7912862 次浏览最后编辑 7 年前来自 ask

开发者工具正常。2017年十月之前正常。

目前苹果安卓都失败。无法下载;以下是代码:

<canvas canvas-id="shareCanvas" class="canvas"></canvas>
wx.canvasToTempFilePath({
              x: 0,
              y: 0,
              width: 312,
              height: 397,
              destWidth: 801,
              destHeight: 1031,
              canvasId: 'shareCanvas',
              success: function(res) {
                console.error("canvas 画完了",res)
                wx.saveImageToPhotosAlbum({
                    filePath:res.tempFilePath,
                    success(res2) {
                      console.error("存好了",res2)
                    }
                })
              },
              fail: function(fail){
                console.error(faile)
              }
            })
4 回复
fang04
fang041 楼6 年前

ios 检测不到6.5.23版本的  微信啊

ugao
ugao2 楼6 年前

请仔细阅读错误提示,你的拼写有误,是fail而不是faile

taosu
taosu3 楼6 年前

ios微信版本6.5.22存在问题,请升级到6.5.23

taomao
taomao4 楼5 年前

报错:canvasToTempFilePath:fail no image