验证码登陆
<p><strong>简要描述:</strong> </p>
<ul>
<li>验证码登陆</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>/customer/login_by_code</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;">contact</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>手机或邮箱</td>
</tr>
<tr>
<td style="text-align: left;">model</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>0手机1邮箱</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>收到的验证码</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"__type": "result",
"state": "ok",
"msg": "登录成功",
"data": {
"token": "F78A36DF2F74B188FD2D98CFB2416A",
"account": {
"account_id": "36860",
"name": "qq47528144111",
"phone": "13265687067",
"notice": "",
"balance": "0.00",
"special_balance": "0.00",
"report_balance": "0.00",
"status": "1",
"last_login_at": "1542184940"
}
},
"time": 1542184940
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>