收藏
回答

canvasToTempFilePath 在ios真机上一直是fail?安卓和模拟器上都正常

   ios报错:fail no image
 
return new Promise((resolve, reject) => {
      console.log("第二步处理中11")
      wx.canvasToTempFilePath({
        destWidth: idestWidth,
        destHeight: idestHeight,
        canvas,
        quality1,
        success(res) {
          console.log("第二步处理中2")
          tempImages = res.tempFilePath;
          // const oldImages = that.data.tempImages;
          // tempImages = (oldImages).concat(tempImages)
          resolve(tempImages)
          // that.setData({
          //   tempImages: tempImages
          // })


        },
        fail:(err)=>{
          console.log(err)
        }
      })
    })
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签