wxa-plugin-canvas 报错 downloadFile:fail Error: getaddrinfo ENOTFOUND tmp“
在使用插件wxa-plugin-canvas生成图片时,有些图片元素是本地临时文件,生成时出现报错downloadFile:fail Error: getaddrinfo ENOTFOUND tmp"
通过修改文件目录 miniprogram_npm — wxa-plugin-canvas — index — index.js文件下的
_downImage方法
if (/^http/.test(imageUrl) && !/tmp/.test(imageUrl) && !ne
原创
2020-09-21 16:44:14 ·
1422 阅读 ·
1 评论