WAServiceMainContext.js?t=wechat&s=1662598156799&v=2.25.4:1错误:调用服务:失败9301002调用a
ocr(tempFilePath:string,type:string){
let that = this ;
console.log(type,"----")
utils.showLoading('正在识别信息')
wx.serviceMarket.invokeService({
service: 'wx79ac3de8be320b71',
api: 'OcrAllInOne',
data:{
img_url: new wx.serviceMarket.CDN({
type: 'filePath',
filePath: tempFilePath,
}),
data_type:3,
ocr_type:type=="business"?"1":3
}
}).then((res: any)=>{
console.log( res )
if(res.errMsg != "invokeService:ok"){
wx.hideLoading()
utils.showTost('识别错误请重新上传')
return
}
if(type == "business" ){}})
ocr_type:type=="business"?7:1