生成临时二维码
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>生成临时二维码</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://guide-api-test.feihe.com/activity-wechat/api/wxWeChat/createQrCode</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<ul>
<li>格式
<pre><code class="language-json">{
&quot;sceneStr&quot;:&quot;eyJhY3Rpdml0eV90eXBlX25hbWUiOiJQS+i1my3mtojotLnogIXln7norq0iLCJhY3Rpdml0eV90eXBlIjoiMyIsImFjdGl2aXR5X2lkIjoiTVQxOTUwIiwiaWQiOjQ5MjgyLCJhY3Rpdml0eV90aGVtZSI6IjIyIiwiYWN0aXZpdHlfdGhlbWVfbmFtZSI6IuWmiOWmiOeahOeIsSIsImNvZGVfdHlwZSI6InNpZ24ifQ==&quot;,
&quot;second&quot;:86400
}</code></pre></li>
</ul>
<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;">sceneStr</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>生成二维码的参数BASE64字符串</td>
</tr>
<tr>
<td style="text-align: left;">second</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">long</td>
<td>失效时间(秒)</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;ticket&quot;:&quot;gQGA8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyd1BGS0JtUEpmdTIxUVFQSXh5Y0cAAgS0IetiAwSAUQEA&quot;,
&quot;expire_seconds&quot;:86400,
&quot;url&quot;:&quot;http://weixin.qq.com/q/02wPFKBmPJfu21QQPIxycG&quot;
}</code></pre>
<h5>返回参数说明</h5>
<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;">ticket</td>
<td style="text-align: left;">string</td>
<td>取码票据</td>
</tr>
<tr>
<td style="text-align: left;">expire_seconds</td>
<td style="text-align: left;">long</td>
<td>有效时长</td>
</tr>
<tr>
<td style="text-align: left;">url</td>
<td style="text-align: left;">string</td>
<td>二维码图片解析后的地址</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<h6>1.使用方式</h6>
<ul>
<li>
<p>二维码链接前缀
<code>https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=TICKET</code></p>
</li>
<li>TICKET替换成返回中的ticket </li>
</ul>
<h6>2.微信生成二维码详细限制</h6>
<ul>
<li>
<p>官方文档 [微信生成临时二维码](<a href="https://developers.weixin.qq.com/doc/offiaccount/Account_Management/Generating_a_Parametric_QR_Code.html">https://developers.weixin.qq.com/doc/offiaccount/Account_Management/Generating_a_Parametric_QR_Code.html</a> "微信生成临时二维码")</p>
</li>
<li>更多返回错误代码请看微信的错误代码描述</li>
</ul>
<h1>改造计划</h1>
<p>1、增加生成日志入库</p>