wx.scanCode在企业微信安卓端时扫描一维码,返回二维码scanType."QR CODE“?
wx.scanCode({
scanType: ['barCode'],
success(scanRes: any) {
console.log('scanRes :>> ', scanRes)
console.log('扫码类型:' + scanRes.scanType)
console.log('扫码内容:' + scanRes.result)
resolve(scanRes)
},
fail() {
reject()
}
})
安卓端任何机型扫码都是返回QR_CODE, api的scanType属性值填与不填都一样
[图片]