请求接口报文如下:
POST /face/idcardcompare HTTP/1.1
host: recognition.image.myqcloud.com
AUTHORIZATION: hYES74a2uiLmK30pQCEsJZpTgKZhPTEyNTU1NTI3NzAmYj10ZXN0Jms9QUtJRHkwUWpReW5ZWk56U2txU2lqZE51TGV3NTV1OEhSMVRrJnQ9MTUyOTEzODI1MyZlPTE1MjkxMzg1NTMmcj04ODY2NzkxODc=
Transfer-Encoding: chunked
Content-Type: multipart/form-data; boundary=87eznih3eJLQG_ZmZb1bMmmzOkP5GJZqM8T; charset=UTF-8
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_161)
Accept-Encoding: gzip,deflate
5c
--87eznih3eJLQG_ZmZb1bMmmzOkP5GJZqM8T
Content-Disposition: form-data; name="bucket"
test
62
--87eznih3eJLQG_ZmZb1bMmmzOkP5GJZqM8T
Content-Disposition: form-data; name="idcard_name"
???
73
--87eznih3eJLQG_ZmZb1bMmmzOkP5GJZqM8T
Content-Disposition: form-data; name="idcard_number"
445224****1833
63
--87eznih3eJLQG_ZmZb1bMmmzOkP5GJZqM8T
Content-Disposition: form-data; name="appid"
1255552770
1089
--87eznih3eJLQG_ZmZb1bMmmzOkP5GJZqM8T
Content-Disposition: form-data; name="image"; filename="fyz-zm.jpg"
Content-Type: image/jpg
接口返回包:
HTTP/1.1 200 OK
Server: nginx
Date: Sat, 16 Jun 2018 08:37:38 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 60
Connection: keep-alive
{"code":-5806,"message":"ID_OR_NAME_FORMAT_ERROR","data":{}}
疑问:
1.-5806错误码并没有在接口错误码中列出,该错误码具体指的什么意思
2.按照接口文档中列出的参数、编码进行请求,麻烦给出具体的解决方案
相似问题