html52.com
我爱小程序-开发者交流社区

调用wx.chooseImage之后进行ocr身份证识别出错,错误码-2是什么原因?

wx.chooseImage({
 count:1,
 success(res) {
   let url = res.tempFilePaths[0];
   wx.serviceMarket.invokeService({
     service'wx79ac3de8be320b71',
     api'OcrAllInOne',
     data: {
       img_url: url,
       data_type3,
       ocr_type1,
     },
   }).then(res => {
     console.log(res);
   }).catch(err => console.log(err))
 }
})

报错:

Error: invokeService:fail operateWXData:fail (err_code -2)
    at VM4738 WAService.js:2
    at VM4738 WAService.js:2
    at Object.throw (VM4738 WAService.js:2)
    at o (VM4738 WAService.js:2)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付