小程序扫码接口wx.scanCode 相册无法识别pdf417
发布于 6 年前 作者 mingong 4991 次浏览 来自 问答

调用wx.scanCode接口如下:

wx.scanCode({

scanType: [‘barCode’, ‘qrCode’, ‘datamatrix’, ‘pdf417’],

success: (res) => {

    console.log(res)

})

直接用相机可以识别pdf417,但是用相册传入照片就没法识别照片里的pdf417码。请问这是预期的行为嘛?

1 回复

麻烦提供能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

以及测试的pdf417码

回到顶部