img.scanQRCode如何解析buffer?
// 小程序端 [代码]let buffer = wx.getFileSystemManager().readFileSync(filePath)[代码] [代码] [代码][代码]wx.cloud.callFunction({[代码][代码] [代码][代码]name: [代码][代码]'imgCheck'[代码][代码],[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]contentType: `image/jpeg[代码][代码]`,[代码][代码] [代码][代码]buffer: buffer,[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码] // 云端 const res = await cloud.openapi.img.scanQRCode({ img: { contentType: event.contentType, value: Buffer.from(event.buffer) } }) 如上, errCode: 41005 errMsg: "openapi.img.scanQRCode:fail media data missing hint: [vYrSkA00211301]" 用相同的图片,用相同的处理方法,调用 cloud.openapi.security.imgSecCheck 方法没有问题,猜测是 scanQRCode 方法解析文件有问题?求官方看看