登陆
<p><strong>简要描述:</strong> </p>
<ul>
<li>登陆</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>/m/dologin</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<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;">username</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户名</td>
</tr>
<tr>
<td style="text-align: left;">password</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>密码</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"__type": "result",
"state": "ok",
"msg": "登录成功,即将进入个人中心...",
"data": {
"token": "D228BD12901E3F6DE185577F2969706C2501D92C96571C613F84B480A8EC635077CBF7CA837CA01C98F10D25231FF0A8",
"account": {
"account_id": "177",
"name": "88888",
"phone": null,
"notice": "",
"balance": "418.49",
"special_balance": "0.26",
"report_balance": "1.12",
"status": "1",
"last_login_at": "1540949230",
"head_img_url": "head_img_url",//头像
}
},
"time": 1540949230
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<h1>token:有效期默认30天,重新请求登录接口会使之前获取的token失效</h1>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>