getImageInfo报错:fail download image fail,设备信息如下
Accept:"application/json"
SDKVersion:"2.2.4"
X-Requested-With:"XMLHttpRequest"
benchmarkLevel:8
brand:"xiaomi"
content-type:"application/x-www-form-urlencoded"
errMsg:"getSystemInfo:ok"
fontSizeSetting:16
language:"zh_CN"
model:"Redmi Note 4X"
pixelRatio:3
platform:"miniprogrammer"
screenHeight:640
screenWidth:360
statusBarHeight:20
system:"Android 7.0"
version:"6.7.2"
windowHeight:572
windowWidth:360
wxScene:"1012"
代码片段:
//获取图片信息
let getImageInfo = (image, key) => {
return new Promise(function (resolve, reject) {
wx.getImageInfo({
src: image,
success(res) {
resolve({ [key]: { image, ...res } });
},
fail(e) {
reject(e, image, key);
}
});
})
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。