聊天室 -- 管理员发红包
<p><strong>简要描述:</strong></p>
<p>-聊天室发红包</p>
<p><strong>URL</strong></p>
<ul>
<li><code>http://xx.com/chatFunction/addChatRoomRedp</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;">oid</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户在线oid</td>
</tr>
<tr>
<td style="text-align: left;">redPSDate</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>红包领取开始时间,传值类型:Y-m-d H:i:s 例如:2018-07-10 20:20:20</td>
</tr>
<tr>
<td style="text-align: left;">redPTime</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>红包有效时间,单位 S 秒,例如 500 ,默认 86400 秒</td>
</tr>
<tr>
<td style="text-align: left;">num</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>红包数量, 默认10</td>
</tr>
<tr>
<td style="text-align: left;">redP</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>红包总金额, 默认100元</td>
</tr>
</tbody>
</table>
<p><strong>请求示例</strong></p>
<pre><code>{
&quot;oid&quot;:&quot;d3bd983981e09c8c5f3cb349a9ec809f&quot;,
&quot;redPSDate&quot;:&quot;2018-07-09 00:00:00&quot;,
&quot;redPTime&quot;:&quot;50000&quot;,
&quot;num&quot;:&quot;20&quot;,
&quot;redP&quot;:&quot;1000&quot;
}</code></pre>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;code&quot;:0,
&quot;msg&quot;:2006,
&quot;data&quot;:&quot;添加成功,发出红包20个 共计1000元&quot;, //返回消息
&quot;RedpId&quot;:22 //红包id,这个很重要,这个很重要,这个很重要
}</code></pre>
<p>失败的情况:</p>
<pre><code>{
&quot;code&quot;: 1,
&quot;msg&quot;: 7001,
&quot;info&quot;: &quot;您的余额不足,请充值。&quot; //失败原因
}</code></pre>
<p><strong>备注</strong></p>
<ul>
<li>单个管理员发红包的间隔时间为3秒</li>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>