API

凤凰投注开放其他


验证码

<p><strong>简要描述:</strong></p> <ul> <li>从后端获取一个验证码</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://xxx.xxx.com/Tool/getValidCode</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST Content-Type: application/json;charset=utf-8</li> </ul> <p><strong>参数:</strong> 无需参数</p> <p><strong>返回示例</strong></p> <pre><code>{ &amp;quot;codeImg&amp;quot;:&amp;quot;&amp;quot;, // base64格式的图片验证码 &amp;quot;vcode&amp;quot;:&amp;quot;&amp;quot;, // 验证码原文 &amp;quot;imgInfo&amp;quot;:&amp;quot;data:image/png;base64,&amp;quot; // 验证码图片头 用于拼接img的src属性 }</code></pre> <p><strong>备注</strong> <code>&amp;lt;img id=&amp;quot;imgpng&amp;quot; src=&amp;quot;&amp;quot;&amp;gt;</code> <code>src = imgInfo + codeImg</code></p>

页面列表

ITEM_HTML