API

凤凰投注开放其他


登录获取/刷新验证码

<p><strong>简要描述:</strong></p> <ul> <li>从后端获取一个验证码</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://xxx.xxx.com/user/getValidCodeuser</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST Content-Type: application/json;charset=utf-8</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> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "codeImg": "", "code": 0, "msg": 2006, "imgInfo": "data:image/png;base64,", "check_key": "ecfaef2cda6e0f7bab3c5d0a4891221e", //验证码key 安卓,IOS必传。前端可以不用此参数.以最后一次刷新的key作为登录的key "info": "请在60秒内输入验证码", "check_status": true //是否展示验证码,ture=展示,false=不展示 }</code></pre> <p><strong>备注</strong> <code>&lt;img id="imgpng" src=""&amp;</code> <code>src = imgInfo + codeImg</code></p>

页面列表

ITEM_HTML