获取用户token
<p><strong>简要描述:</strong></p>
<ul>
<li>获取用户token</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>https://api-hmugo-web.itheima.net/api/public/v1/users/wxlogin</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<p>以下字段主要用作后台服务器生成用户token所有,无特殊用意</p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>encryptedData</td>
<td>是</td>
<td>string</td>
<td>执行小程序 获取用户信息后 得到</td>
</tr>
<tr>
<td>rawData</td>
<td>是</td>
<td>string</td>
<td>执行小程序 获取用户信息后 得到</td>
</tr>
<tr>
<td>iv</td>
<td>是</td>
<td>string</td>
<td>执行小程序 获取用户信息后 得到</td>
</tr>
<tr>
<td>signature</td>
<td>是</td>
<td>string</td>
<td>执行小程序 获取用户信息后 得到</td>
</tr>
<tr>
<td>code</td>
<td>是</td>
<td>string</td>
<td>执行小程序登录后获取</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;message&quot;: {
&quot;user_id&quot;: 23,
&quot;user_email_code&quot;: null,
&quot;is_active&quot;: null,
&quot;user_sex&quot;: &quot;男&quot;,
&quot;user_qq&quot;: &quot;&quot;,
&quot;user_tel&quot;: &quot;&quot;,
&quot;user_xueli&quot;: &quot;本科&quot;,
&quot;user_hobby&quot;: &quot;&quot;,
&quot;user_introduce&quot;: null,
&quot;create_time&quot;: 1562221487,
&quot;update_time&quot;: 1562221487,
&quot;token&quot;: &quot;Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjIzLCJpYXQiOjE1NjQ3MzAwNzksImV4cCI6MTAwMTU2NDczMDA3OH0.YPt-XeLnjV-_1ITaXGY2FhxmCe4NvXuRnRB8OMCfnPo&quot;
},
&quot;meta&quot;: {
&quot;msg&quot;: &quot;登录成功&quot;,
&quot;status&quot;: 200
}
}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>token</td>
<td>string</td>
</tr>
</tbody>
</table>