验证码
<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>{
&quot;codeImg&quot;:&quot;&quot;, // base64格式的图片验证码
&quot;vcode&quot;:&quot;&quot;, // 验证码原文
&quot;imgInfo&quot;:&quot;data:image/png;base64,&quot; // 验证码图片头 用于拼接img的src属性
}</code></pre>
<p><strong>备注</strong>
<code>&lt;img id=&quot;imgpng&quot; src=&quot;&quot;&gt;</code>
<code>src = imgInfo + codeImg</code></p>