登陆
<p> URL地址:<a href="https://api.xuetibao.cn/api/login">https://api.xuetibao.cn/api/login</a></p>
<p> 请求方式:POST</p>
<table>
<thead>
<tr>
<th>字段名</th>
<th>变量名</th>
<th>是否必填</th>
<th>示例值</th>
</tr>
</thead>
<tbody>
<tr>
<td>手机号</td>
<td>phone</td>
<td>是</td>
<td>15888888888</td>
</tr>
<tr>
<td>密码</td>
<td>password</td>
<td>是</td>
<td>123456</td>
</tr>
</tbody>
</table>
<p> 返回结果(json)</p>
<pre><code>{
&quot;code&quot;: 200,
&quot;message&quot;: &quot;登陆成功&quot;,
&quot;0&quot;: {
&quot;loginkey&quot;: &quot;bJslFCuJ9nk1ZHwIATmjSMclm8P7rLTQ&quot;
}
}
</code></pre>
<p> tips:您需要将手机号连同用户名存储到本地cookie里面,在需要登陆验证的页面将本密钥连同手机号传回给接口</p>