Commit 397a0dcd by ZimLuck

Update OCR接口.md

1 parent d8ebd1e4
Showing with 60 additions and 48 deletions
<a name='client_hessian'></a>
<a name='client_hessian'></a>
......@@ -4,49 +4,50 @@
# 扬州-招行OCR和人脸认证接口
---
1. 请求报文
1. 请求报文格式示例
## 报文格式
1. 请求报文格式示例
```
{
"params": {
"type": "idcard",
"imageType": "jpg",
....
},
"httpurl": "招行服务地址,可为空"
}
```
{
"params": {
"type": "idcard",
"imageType": "jpg",
....
},
"httpurl": "招行服务地址,可为空"
}
```
```
1. 应答报文
1. 应答报文格式示例
```
{
"result": {
"data": [响应明细信息]
},
"error_msg": "响应说明",
"error_code": "错误成功代码,0成功 其他失败",
"xybw": "招行响应的原始报文"
}
1. 应答报文格式示例
```
```
{
"result": {
"data": [响应明细信息]
},
"error_msg": "响应说明",
"error_code": "错误成功代码,0成功 其他失败",
"xybw": "招行响应的原始报文"
}
```
## 身份证OCR接口
1. 接口:esb_wl_test/service/zh/getSfzOcr
1. 请求报文示例
```
{
"params": {
"type": "idcard",
"imageType": "jpg",
"fileName": "idcard.jpg",
"image": "需识别图片的base64编码字符串"
},
"httpurl": ""
}
```
```
{
"params": {
"type": "idcard",
"imageType": "jpg",
"fileName": "idcard.jpg",
"image": "需识别图片的base64编码字符串"
},
"httpurl": ""
}
```
1. 应答报文示例
```
{
......@@ -117,6 +118,7 @@
"httpurl": ""
}
```
1. 应答报文示例
```
{
......@@ -130,6 +132,7 @@
"xybw": "{\"code\":\"0000\",\"msg\":\"成功\",\"content\":{\"agtStr\":\"<p class='MsoNormal'><strong><span style='line-height:120%'></span>...</p>\"}}"
}
```
## 用户签约
1. 接口:esb_wl_test/service/zh/getFaceSignContract
1. 请求报文示例
......@@ -142,6 +145,7 @@
"httpurl": ""
}
```
1. 应答报文示例
```
{
......@@ -151,6 +155,7 @@
"xybw": "{\"code\":\"0000\",\"msg\":\"成功\",\"content\":null}"
}
```
## 人脸认证
1. 接口:esb_wl_test/service/zh/getFaceRecognition
1. 请求报文示例
......@@ -164,29 +169,34 @@
"httpurl": ""
}
```
1. 应答报文示例
1. 活体检测失败
```
{
1. 活体检测失败
```
{
"result": {
"data": []
},
"error_msg": "活体检测失败",
"error_code": "0305070007",
"xybw": "{\"code\":\"0305070007\",\"msg\":\"活体检测失败\",\"content\":\"100939956931338240\"}"
}
```
1. 未发签约接口直接发人脸识别接口返回
```
{
}
```
1. 未发签约接口直接发人脸识别接口返回
```
{
"result": {
"data": []
},
"error_msg": "用户未签署协议",
"error_code": "0305070013",
"xybw": "{\"code\":\"0305070013\",\"msg\":\"用户未签署协议\",\"content\":null}"
}
```
}
```
1. 测试库不存在的数据
```
{
......@@ -198,6 +208,7 @@
"xybw": "{\"code\":\"0305070010\",\"msg\":\"照片不存在\",\"content\":\"100948140225985331\"}"
}
```
1. 成功示例报文
```
{
......@@ -208,4 +219,5 @@
"error_code": "0",
"xybw": "{\"code\":\"0000\",\"msg\":\"成功\",\"content\":\"100948035164571648\"}"
}
```
\ No newline at end of file
```
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!