会员信息获取
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>会员信息获取接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://food.taihuyun.vip/api/foodcash.user/recognition?applet_id=1&shop_id=1&token=8014374705939b271a346001006d8aa5&words=13338772204</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">applet_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>应用程序ID</td>
</tr>
<tr>
<td style="text-align: left;">shop_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>门店ID</td>
</tr>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户身份验证的令牌</td>
</tr>
<tr>
<td style="text-align: left;">words</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>电话或者卡号</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"code": 1,
"msg": "success",
"data": {
"user_id": 14,
"union_id": "oV9Ls0ha_obP5a5tBNQrb8Rva02k",
"open_id": "ov9ED0VzrTpTOpGerKvyXw_K17R4",
"user_type": 1,
"user_name": "",
"password": "",
"nickname": "Nikoo",
"avatar": "https://oss.onecard.taihuyun.vip/uploads/admin/avatar/ATQr9oXQVcwtTFunHYBoL3mwiesLTdjp42e25fb1da77f9c9c463088a8af9eab0.jpeg",
"gender": "未知",
"country": "",
"province": "",
"city": "",
"money": "0.00",
"linkman": "",
"phone": "13338772204",
"pay": "0.00",
"score": 0,
"converted": 0,
"v": 1,
"birthday": "",
"address_id": 0,
"recommender": {
"text": "平台推荐",
"value": 0
},
"status": {
"text": "用户",
"value": 10
},
"platform": {
"text": "微信",
"value": 10
},
"is_subscribe": 0,
"agent_id": 0,
"login_count": 0,
"applet_id": 1,
"identity": {
"text": "化验室",
"value": 4,
"company_text": "化验室",
"company_value": 4
},
"position": {
"text": "",
"value": 0
},
"department_id": {
"value": 0,
"text": "全部"
},
"auth": "",
"work_no": "0000000",
"card_no": "666666",
"is_del": 0,
"create_time": "2022-10-20 15:41:47",
"update_time": "2022-12-14 15:22:14",
"ticket_count": 1,
"details": {},
"usable": 0
}
}</code></pre>
<h5>返回参数说明</h5>
<ul>
<li>返回状态代码: 200</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">user_name</td>
<td style="text-align: left;">string</td>
<td>用户姓名</td>
</tr>
<tr>
<td style="text-align: left;">password</td>
<td style="text-align: left;">string</td>
<td>密码</td>
</tr>
<tr>
<td style="text-align: left;">nickname</td>
<td style="text-align: left;">string</td>
<td>昵称</td>
</tr>
<tr>
<td style="text-align: left;">avatar</td>
<td style="text-align: left;">string</td>
<td>头像</td>
</tr>
<tr>
<td style="text-align: left;">gender</td>
<td style="text-align: left;">string</td>
<td>性别</td>
</tr>
<tr>
<td style="text-align: left;">phone</td>
<td style="text-align: left;">int</td>
<td>手机号</td>
</tr>
<tr>
<td style="text-align: left;">linkman</td>
<td style="text-align: left;">string</td>
<td>联系人</td>
</tr>
<tr>
<td style="text-align: left;">status.value</td>
<td style="text-align: left;">int</td>
<td>用户状态,10.用户;20.店长</td>
</tr>
<tr>
<td style="text-align: left;">create_time</td>
<td style="text-align: left;">string</td>
<td>创建金额</td>
</tr>
<tr>
<td style="text-align: left;">card_no</td>
<td style="text-align: left;">string</td>
<td>卡号</td>
</tr>
<tr>
<td style="text-align: left;">ticket_count</td>
<td style="text-align: left;">num</td>
<td>餐券数</td>
</tr>
<tr>
<td style="text-align: left;">image</td>
<td style="text-align: left;">string</td>
<td>优惠的菜品图片</td>
</tr>
<tr>
<td style="text-align: left;">identity.text</td>
<td style="text-align: left;">string</td>
<td>部门名称</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看基本参数中的参数说明</li>
</ul>