撞库请求接口
<h2>撞库请求:</h2>
<ul>
<li>功能说明:用于提交当前手机要提交的信息有无已经提交过了,如果数据我方已经存在,则无需继续提交</li>
<li>请确保测试环境接通后,再切换正式接口地址,然后使用商务提供的正式参数</li>
<li>如果本接口返回200 则可进行下一步接口请求操作</li>
<li>如果请求本接口超过3秒未返回结果,则默认我方已存在,无需进件</li>
</ul>
<hr />
<ul>
<li>
<p>测试环境接口地址: <a href="http://test-ad.haoxin361.cn/hit"><a href="http://test-ad.haoxin361.cn/hit">http://test-ad.haoxin361.cn/hit</a></a></p>
</li>
<li>正式环境接口地址: <a href="http://zyr.haoxin361.cn/hit"><a href="http://zyr.haoxin361.cn/hit">http://zyr.haoxin361.cn/hit</a></a></li>
</ul>
<p><strong>签名:</strong></p>
<pre><code>签名为保证传输内容的合法性,需要对传输内容进行签名。 签名算法采用 MD5,字符串为小写。
测试环境:
AppKey : bc31ed77c017aeb1
AppSecret : 20b1b7ee55e9ee46444e4154b36a6161
正式环境的参数有对接商务提供</code></pre>
<h5>签名计算方式</h5>
<pre><code>sign = md5(appKey + appSecret + phoneMd5 + timestamp);其中appSecret由接收方提供</code></pre>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>appKey</td>
<td>是</td>
<td>string</td>
<td>接收方提供</td>
</tr>
<tr>
<td>sign</td>
<td>是</td>
<td>string</td>
<td>Md5签名</td>
</tr>
<tr>
<td>timestamp</td>
<td>是</td>
<td>string</td>
<td>时间戳 到秒级 例:1704042061,10位</td>
</tr>
<tr>
<td>phoneMd5</td>
<td>是</td>
<td>string</td>
<td>明文电话号码Md5加密值(小写),用于判断是否重复</td>
</tr>
<tr>
<td>province</td>
<td>是</td>
<td>string</td>
<td>省 <code>全称,如果有省 必须包含“省”这个字,如广东省 江西省,直辖市、行政区可以传空</code></td>
</tr>
<tr>
<td>city</td>
<td>是</td>
<td>string</td>
<td>市 <code>全称,如果有市 必须包含“市”这个字,如广州市 江门市</code></td>
</tr>
</tbody>
</table>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>msg</td>
<td>string</td>
<td>描述信息</td>
</tr>
<tr>
<td>code</td>
<td>integer</td>
<td>请求状态码</td>
</tr>
<tr>
<td>data</td>
<td>integer</td>
<td>返回数据</td>
</tr>
<tr>
<td>data.<code>product_info</code></td>
<td>array</td>
<td>返回产品等信息 (非必传字段,根据实际业务回传)</td>
</tr>
<tr>
<td>data.<code>product_info</code>.<code>logo</code></td>
<td>string</td>
<td>机构logo地址</td>
</tr>
<tr>
<td>data.<code>product_info</code>.<code>product_name</code></td>
<td>string</td>
<td>机构产品名称</td>
</tr>
<tr>
<td>data.<code>product_info</code>.<code>company_name</code></td>
<td>string</td>
<td>机构公司名称</td>
</tr>
<tr>
<td>data.<code>product_info</code>.<code>order_num</code></td>
<td>string</td>
<td>订单单号</td>
</tr>
<tr>
<td>data.<code>product_info</code>.<code>agreements</code></td>
<td>array</td>
<td>协议信息</td>
</tr>
<tr>
<td>data.<code>product_info</code>.<code>agreements</code>.<code>title</code></td>
<td>string</td>
<td>协议名称</td>
</tr>
<tr>
<td>data.<code>product_info</code>.<code>agreements</code>.<code>url</code></td>
<td>string</td>
<td>协议地址</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;SUCCESS&quot;,
&quot;data&quot;: {
&quot;product_info&quot;: {
&quot;logo&quot;: &quot;https://www.baidu.com/1.png&quot;,
&quot;product_name&quot;: &quot;测试产品名称&quot;,
&quot;company_name&quot;: &quot;测试公司名称&quot;,
&quot;order_num&quot;: &quot;order_8d2629609c2d9f91db1fe4876547d648&quot;,
&quot;agreements&quot;: [
{
&quot;title&quot;: &quot;个人共享协议&quot;,
&quot;url&quot;: &quot;https://www.baidu.com/1.html&quot;
}
]
}
}
}</code></pre>
<p><strong>code说明</strong></p>
<table>
<thead>
<tr>
<th>Code</th>
<th>Description</th>
<th>msg</th>
</tr>
</thead>
<tbody>
<tr>
<td>200</td>
<td>成功</td>
<td>SUCCESS</td>
</tr>
<tr>
<td>401</td>
<td>失败</td>
<td>数据异常</td>
</tr>
</tbody>
</table>