抢红包
<p><strong>简要描述:</strong></p>
<ul>
<li>抢红包</li>
</ul>
<p><strong>URL</strong></p>
<ul>
<li><code>http://xx.com/ChatFunction/doRedPocketReceive</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;">redpocket_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>红包的id</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;msg&quot;: 2006, // 成功
&quot;money&quot;: 27 // 如果成功 返回失败的金额
}</code></pre>
<p>或</p>
<pre><code>{
&quot;msg&quot;: 7001, // 失败
&quot;info&quot;: &quot;红包不存在!&quot; // 失败原因
}</code></pre>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>