微信app_id : wx159d118a509fb007
请求信息:{
"service": "wx79ac3de8be320b71",
"api": "OcrAllInOne",
"data": {
"img_url": "https://thr.hzjuym.com/upload/idcard/5e759c89d5ad5.jpg",
"data_type": 3,
"ocr_type": 1
},
"client_msg_id": "hr20200407"
}
返回信息:{
"errcode": 9301002,
"errmsg": "call api service failed request id:[MLwu3efU4sGckvgWGdjYsJnCNEgbXMXLY91I48ohZjWmx7KnRdARwSX_KNZbTjwSrLM] rid: 60498422-4a63cf87-6df4d575"
}
请求时间:上午十点半左右
你把参数转成int 就可以了,我这样之后就不报错了!
ocr_type: parseInt(OCRTYPES),
ocr_type: parseInt(OCRTYPES),
const invokeRes = await wx.serviceMarket.invokeService({
service: config.serviceMarketOCRServiceId,
api: 'OcrAllInOne',
data: {
img_data: fileData,
data_type: 2,
ocr_type: parseInt(OCRTYPES),
},
})