短信登录接口
<p><strong>简要描述:</strong> </p>
<ul>
<li>该接口用于登录页短信登录的功能</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>https://iot.xunmingiot.com/config/login_sms/</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
<li>GET </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;">userphone_sms</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>手机号</td>
</tr>
<tr>
<td style="text-align: left;">get_code_sms</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>成功: 重定向到登录页
失败:
&lt;script&gt;alert(&quot;用户状态被锁定无法登录&quot;);location.assign(&quot;&quot;)&lt;/script&gt;
&lt;script&gt;alert(&quot;验证码错误&quot;);location.assign(&quot;&quot;)&lt;/script&gt;
&lt;script&gt;alert(&quot;该手机号未注册,请您先注册&quot;);location.assign(&quot;&quot;)&lt;/script&gt;</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">groupid</td>
<td style="text-align: left;">int</td>
<td>用户组id,1:超级管理员;2:普通用户</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>