爱莉希雅社区团购

11


获取用户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>{ &amp;quot;message&amp;quot;: { &amp;quot;user_id&amp;quot;: 23, &amp;quot;user_email_code&amp;quot;: null, &amp;quot;is_active&amp;quot;: null, &amp;quot;user_sex&amp;quot;: &amp;quot;男&amp;quot;, &amp;quot;user_qq&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;user_tel&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;user_xueli&amp;quot;: &amp;quot;本科&amp;quot;, &amp;quot;user_hobby&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;user_introduce&amp;quot;: null, &amp;quot;create_time&amp;quot;: 1562221487, &amp;quot;update_time&amp;quot;: 1562221487, &amp;quot;token&amp;quot;: &amp;quot;Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjIzLCJpYXQiOjE1NjQ3MzAwNzksImV4cCI6MTAwMTU2NDczMDA3OH0.YPt-XeLnjV-_1ITaXGY2FhxmCe4NvXuRnRB8OMCfnPo&amp;quot; }, &amp;quot;meta&amp;quot;: { &amp;quot;msg&amp;quot;: &amp;quot;登录成功&amp;quot;, &amp;quot;status&amp;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>

页面列表

ITEM_HTML