迅鸣物联网

迅鸣物联网项目


短信登录接口

<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>成功: 重定向到登录页 失败: &amp;lt;script&amp;gt;alert(&amp;quot;用户状态被锁定无法登录&amp;quot;);location.assign(&amp;quot;&amp;quot;)&amp;lt;/script&amp;gt; &amp;lt;script&amp;gt;alert(&amp;quot;验证码错误&amp;quot;);location.assign(&amp;quot;&amp;quot;)&amp;lt;/script&amp;gt; &amp;lt;script&amp;gt;alert(&amp;quot;该手机号未注册,请您先注册&amp;quot;);location.assign(&amp;quot;&amp;quot;)&amp;lt;/script&amp;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>

页面列表

ITEM_HTML