使用
wx.scanCode({
success(res) {
console.log('调用扫码成功:',res);
resolve(res)
},fail(err){
reject(err)
}
})
调用扫码成功:
返回的结果里scanType为空,不应该是QR_CODE吗?
{"result":"\"https://u.wechat.com/ELfWroK4CT8KfbkjHqUVtPc\"",**"scanType":""**,"charSet":"utf8","path":"","errMsg":"scanCode:ok"}
1 个回复
DCloud_UNI_CHB
HBuilderX 1.9.7 Alpha 版发布,已修复该问题。
Alpha版本说明及下载地址参考:https://ask.dcloud.net.cn/article/35765