安卓所有机型将画布转图片成黑块,但iOS正常,之前还是好的。有没有临时解决方案?
发布于 6 年前 作者 gqiao 14235 次浏览 来自 问答

就是这个方法执行出的问题,类似用户提的问题有https://developers.weixin.qq.com/community/develop/doc/0004629fda0950f7b6787ec9a56800?highline=%E5%AE%89%E5%8D%93%E7%94%BB%E5%B8%83%E8%BD%AC%E5%9B%BE%E7%89%87

非常着急,上线的小程序之前还是好的,现在突然出现这个问题导致公司业务无法进行,请问有没有临时解决方案?

this.ctx.draw(true, (() => {

setTimeout(function () {

wx.canvasToTempFilePath({

canvasId: that.canvasName,

destWidth: 160,

destHeight: 320,

fileType: 'jpg',

quality: 0.1,

success: function (res) {

if (that.callBack) {

that.callBack(res.tempFilePath);

}

}

}, that);

}, 1000);

})());

1 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部