收藏
回答

微信OCR识别调用报invokeService:fail 9301002 call api?

上送内容

wx.serviceMarket.invokeService({

service: 'wx79ac3de8be320b71', // '固定为服务商OCR的appid,非小程序appid',

api: 'OcrAllInOne',

data: {

img_url: that.localIds,

data_type: 3,

ocr_type: 1,

},

}).then(res => {

console.log('invokeService success', res)

wx.showModal({

title: 'cost',

content: (Date.now() - d) + '',

})

}).catch(err => {

console.error('invokeService fail', err)

wx.showModal({

title: 'fail',

content: err + '',

})

})



报错:

回答关注问题邀请回答
收藏

1 个回答

  • 幺五六
    幺五六
    2023-08-10

    你好,有解决方案吗?分享下

    2023-08-10
    有用
    回复
登录 后发表内容