2.0、人脸校验
<p>创建一个人脸核身接口文档的基本结构,可以包括以下几个部分:</p>
<h1>人脸核身接口文档</h1>
<h3>1.1.1. 获取人脸识别URL(移动端浏览器)</h3>
<ul>
<li>请求路径:/credit/getFaceRecognitionUrl</li>
<li>请求方法:post</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名 </th>
<th>参数说明</th>
<th>备注 </th>
</tr>
</thead>
<tbody>
<tr>
<td>jumpUrl</td>
<td>人脸识别后跳转链接 </td>
<td>不能为空</td>
</tr>
</tbody>
</table>
<ul>
<li>响应数据</li>
</ul>
<pre><code class="language-json"> {
&quot;meta&quot;: {
&quot;msg&quot;: &quot;成功&quot;,
&quot;status&quot;: 200
},
&quot;data&quot;: {
&quot;url&quot;: &quot;https://kyc1.qcloud.com/api/web/login?appId=TIDAmCZ3&amp;version=1.0.0&amp;nonce=2d3c02a831074e498ef4a38a10657451&amp;faceId=tx11d84d5ad16cd0576ea9042bc4f0eb&amp;url=www.baidu.com&amp;resultType=1&amp;userId=marlin&amp;sign=67B8799B558DB29F972BCE1B661FE899F4F30157&amp;from=browser&amp;redirectType=1&amp;orderNo=58b9684b82d44fb8a7594d22a2ef329e&quot;,
&quot;orderNo&quot;:&quot;58b9684b82d44fb8a7594d22a2ef329e&quot;
},
}</code></pre>
<h3>1.1.2. 获取人脸识别URL(微信浏览器)</h3>
<ul>
<li>请求路径:/credit/getVXFaceRecognitionUrl</li>
<li>请求方法:post</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名 </th>
<th>参数说明</th>
<th>备注 </th>
</tr>
</thead>
<tbody>
<tr>
<td>jumpUrl</td>
<td>人脸识别后跳转链接 </td>
<td>不能为空</td>
</tr>
</tbody>
</table>
<ul>
<li>响应数据</li>
</ul>
<pre><code class="language-json"> {
&quot;meta&quot;: {
&quot;msg&quot;: &quot;成功&quot;,
&quot;status&quot;: 200
},
&quot;data&quot;: {
&quot;url&quot;: &quot;https://kyc1.qcloud.com/api/web/login?appId=TIDAmCZ3&amp;version=1.0.0&amp;nonce=2d3c02a831074e498ef4a38a10657451&amp;faceId=tx11d84d5ad16cd0576ea9042bc4f0eb&amp;url=www.baidu.com&amp;resultType=1&amp;userId=marlin&amp;sign=67B8799B558DB29F972BCE1B661FE899F4F30157&amp;from=browser&amp;redirectType=1&amp;orderNo=58b9684b82d44fb8a7594d22a2ef329e&quot;,
&quot;BizToken&quot;:&quot;58b9684b82d44fb8a7594d22a2ef329e&quot;
},
}</code></pre>
<h3>1.1.3. 查询移动端浏览器人脸识别结果</h3>
<ul>
<li>请求路径:/credit/queryFaceRecognitionResult</li>
<li>请求方法:post</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名 </th>
<th>参数说明</th>
<th>备注 </th>
</tr>
</thead>
<tbody>
<tr>
<td>orderNo</td>
<td>订单号 </td>
<td>不能为空</td>
</tr>
</tbody>
</table>
<ul>
<li>响应数据</li>
</ul>
<pre><code class="language-json"> {
&quot;meta&quot;: {
&quot;msg&quot;: &quot;成功&quot;,
&quot;status&quot;: 200
},
&quot;data&quot;: {
&quot;result&quot;: true,
},
}</code></pre>
<h3>1.1.3. 查询微信浏览器人脸识别结果</h3>
<ul>
<li>请求路径:/credit/queryVXFaceRecognitionResult</li>
<li>请求方法:post</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名 </th>
<th>参数说明</th>
<th>备注 </th>
</tr>
</thead>
<tbody>
<tr>
<td>BizToken</td>
<td>人脸核身流程的标识 </td>
<td>不能为空</td>
</tr>
</tbody>
</table>
<ul>
<li>响应数据</li>
</ul>
<pre><code class="language-json"> {
&quot;meta&quot;: {
&quot;msg&quot;: &quot;成功&quot;,
&quot;status&quot;: 200
},
&quot;data&quot;: {
&quot;result&quot;: true,
},
}</code></pre>