Browse Source

接口较对

pull/1/head
周雪成 3 years ago
parent
commit
340619309f
2 changed files with 47 additions and 8 deletions
  1. 46
    7
      AI/人脸识别接口文档.md
  2. 1
    1
      core/Token使用文档.md

+ 46
- 7
AI/人脸识别接口文档.md View File

12
 | liveCode | String| 否 | 传入对比数据为视频并选择LIP模式时必传,参数为数字验证码接口获取的参数 |
12
 | liveCode | String| 否 | 传入对比数据为视频并选择LIP模式时必传,参数为数字验证码接口获取的参数 |
13
 | --- | --- | --- | --- |
13
 | --- | --- | --- | --- |
14
 | image | -| - | 作为对比参照的客户照片 |
14
 | image | -| - | 作为对比参照的客户照片 |
15
-| type | String| 是 | 固定传"image" |
16
 | origin | String| 否 | image的数据类型。<br/> base64字符串:self<br/>来自文件服务器:fds (**带压缩效果,推荐使用,详见[fds使用文档](../file/文件服务器接口.md))**<br/>图片链接:uri <br/>默认为 self |
15
 | origin | String| 否 | image的数据类型。<br/> base64字符串:self<br/>来自文件服务器:fds (**带压缩效果,推荐使用,详见[fds使用文档](../file/文件服务器接口.md))**<br/>图片链接:uri <br/>默认为 self |
17
 | data | String| 是 | 图片数据(base64,文件服务器文件路径或链接) |
16
 | data | String| 是 | 图片数据(base64,文件服务器文件路径或链接) |
18
 | --- | --- | --- | --- |
17
 | --- | --- | --- | --- |
41
 
40
 
42
 ```
41
 ```
43
 {
42
 {
44
-     
43
+     "async":false,
44
+     "liveCode":"1232",
45
+     "image":{
46
+         "origin":"fds",
47
+         "data":"xxxxxxxxxxxxxx.jpg"
48
+     },
49
+     "faceData":{
50
+         "type":"video",
51
+         "videoType":"SILENT",
52
+         "origin":"fds",
53
+         "data":"xxxxxxxxxxxxxx.mp4"
54
+     }
45
 }
55
 }
46
 ```
56
 ```
47
 
57
 
51
 {
61
 {
52
     "errcode":0,
62
     "errcode":0,
53
     "data":{
63
     "data":{
54
-         
64
+        "status":"SUCCESS",
65
+        "traceNo":"45646513218465123",
66
+        "result":{
67
+            "isSccess":"true",
68
+            "score":"99"
69
+        }, 
70
+        
71
+
55
     },
72
     },
56
     "errmsg":"SUCCESS"
73
     "errmsg":"SUCCESS"
57
 }
74
 }
91
 
108
 
92
 ```
109
 ```
93
 {
110
 {
94
-     
111
+     "async":false,
112
+     "idNum":"身份证号码",
113
+     "name":"姓名",
114
+     "liveCode":"1232",
115
+     "faceData":{
116
+         "type":"video",
117
+         "videoType":"SILENT",
118
+         "origin":"fds",
119
+         "data":"xxxxxxxxxxxxxx.mp4"
120
+     }
95
 }
121
 }
96
 ```
122
 ```
97
 
123
 
101
 {
127
 {
102
     "errcode":0,
128
     "errcode":0,
103
     "data":{
129
     "data":{
104
-         
130
+        "status":"SUCCESS",
131
+        "traceNo":"45646513218465123",
132
+        "result":{
133
+            "isSccess":"true",
134
+            "score":"99"
135
+        }, 
136
+        
137
+
105
     },
138
     },
106
     "errmsg":"SUCCESS"
139
     "errmsg":"SUCCESS"
107
 }
140
 }
131
 
164
 
132
 ```
165
 ```
133
 {
166
 {
134
-    "refreshToken":""
167
+    
135
 }
168
 }
136
 ```
169
 ```
137
 
170
 
141
 {
174
 {
142
     "errcode":0,
175
     "errcode":0,
143
     "data":{
176
     "data":{
144
-        "accessToken":""
177
+        "status":"SUCCESS",
178
+        "traceNo":"45646513218465123",
179
+        "result":{
180
+            "code":"2312
181
+        }, 
182
+        
183
+
145
     },
184
     },
146
     "errmsg":"SUCCESS"
185
     "errmsg":"SUCCESS"
147
 }
186
 }

+ 1
- 1
core/Token使用文档.md View File

52
 
52
 
53
 | 请求参数  | 类型 | 是否必填 | 说明 |
53
 | 请求参数  | 类型 | 是否必填 | 说明 |
54
 | --- | --- | --- | --- | 
54
 | --- | --- | --- | --- | 
55
-| refreshToken | String| 是 | 获取Token时获取的refreshToken |
55
+| refreshToken | String| 是 | 获取Token时返回的refreshToken |
56
 
56
 
57
 | 返回参数  | 类型 | 是否比返 | 说明 |
57
 | 返回参数  | 类型 | 是否比返 | 说明 |
58
 | --- | --- | --- | --- |
58
 | --- | --- | --- | --- |

Loading…
Cancel
Save