使用了开放域,但是手机是可以使用的,pc上不可使用
canvas.toTempFilePath 手机端可用,pc绘制为白屏canvas.toTempFilePath is available on the mobile phone, and the pc is drawn as a white screen
canvas.toTempFilePath 手机端可用,pc绘制为白屏框架类型 | 问题类型 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|
小游戏 | Bug | 工具 | 3.5.0.46 | 2.19.2 |
使用了开放域,但是手机是可以使用的,pc上不可使用
Framework type problem type terminal type wechat version basic library version small game bug tool 3.5.0.46 2.19.2 uses the open domain, but the mobile phone can be used, and the code fragment canvas cannot be used on the PC toTempFilePath({ destWidth: 400, destHeight: 300, success: (res) => { wx.shareAppMessage({ imageUrl: res.tempFilePath }) } })
回答:
提供下appid,以及可以复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
是webgl的canvas.toTempFilePath有问题
工具上这个问题 已复现,修复中