开启宝箱接口
<p><strong>简要描述:</strong> </p>
<ul>
<li>开启宝箱 用户抽奖接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>lotteryUserInfo/lotteryInfo</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </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;">userId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户Id</td>
</tr>
<tr>
<td style="text-align: left;">LotteryCount</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>抽奖次数 传1或者5 1单次开启宝箱 5五连抽</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>------------------抽中奖品返回值--------------------
{
&quot;result&quot;: &quot;lotteryTrue&quot;,
&quot;msg&quot;: &quot;恭喜您抽中小米手机&quot;,
&quot;number&quot;: &quot;15&quot;,
&quot;address&quot;: &quot;0&quot;,//0未填写地址 1填写过地址
&quot;data&quot;: &quot;1&quot; //奖品id,1:小米手机;2:移动电源;3:小米WIFI;4:小米VR;5 试试手气,再开一次
}
-----------------未抽中奖品返回值------------------------
{
&quot;result&quot;: &quot;lotteryFalse&quot;,
&quot;msg&quot;: &quot;试试手气,再开一次&quot;,//哎呀~连开五次都没中呢!
&quot;address&quot;: &quot;0&quot;,//0未填写地址 1填写过地址
&quot;number&quot;: &quot;15&quot;,
&quot;data&quot;: &quot;5&quot;
}
------------------用户未登录-----------------
{
&quot;result&quot;: &quot;error&quot;,
&quot;msg&quot;: &quot;您还未登录,请您先登录!&quot;,
&quot;address&quot;: &quot;0&quot;,//0未填写地址 1填写过地址
&quot;number&quot;: &quot;0&quot;,
&quot;data&quot;: &quot;&quot;
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<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;">data</td>
<td style="text-align: left;">int</td>
<td>奖品id,1:小米手机;2:移动电源;3:小米WIFI;4:小米VR;5 试试手气,再开一次</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>