{"errcode":-1,"errmsg":"system error hints: [ihha?

发布于 7 年前作者 zcui12986 次浏览最后编辑 7 年前来自 ask

调用身份证OCR识别接口,总是返回{“errcode”:-1,“errmsg”:“system error hints: [ihhaCQwhE-ZR!]”}

复现时间:2020-01-15 15:24

请求地址:https://api.weixin.qq.com/cv/ocr/idcard?img_url=https://xxxx.com/salesmanxx/20200115/d1b5d4e9cb67f72de5c3e5c22ff46521.png&access_token=ACCESS_TOCKEN

小程序信息:wxd6fc510892d6bac2
1 回复
jing87
jing871 楼5 年前

你好,img_url 需要 encodeurl , 否则参数判断会出错的。

参考文档:

https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.idcard.html