收藏
回答

这个是什么意思?

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.logres )

              if(res.errMsg != "invokeService:ok"){

                     wx.hideLoading()

                     utils.showTost('识别错误请重新上传')

                     return

              }

              if(type == "business" ){}})


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

1 个回答

  • Almost   ༽
    Almost   ༽
    2022-09-08

    ocr_type:type=="business"?7:1

    2022-09-08
    有用 1
    回复
登录 后发表内容