一分钟调用一次该api, canvas内容已经改变 ,图片路径不变,图片不变
提供下代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
wx.canvasToTempFilePath({ x: 0, y: 0, width: 96, height: 96, canvasId: ‘current_state’, success: function (res) { console.log(res.tempFilePath) that.setData({ readerImg: res.tempFilePath }); } });