休闲游戏 POST 请求奖励列表 以及 用户 剩余抽奖次数
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://thinkadminv5.net/admin.html?s=app_api/api.index/indexGame</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>请求Body参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>会员标识 COOkie 传递</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": "1",
"msg": "活动进行中",
"data": {
"prize": [
{
"id": 5,
"title": "谢谢参与",
"image": "",
"chance": 30,
"score": 0
},
{
"id": 3,
"title": "1积分",
"image": "",
"chance": 20,
"score": 1
},
{
"id": 6,
"title": "15积分",
"image": "",
"chance": 15,
"score": 15
},
{
"id": 1,
"title": "五十积分",
"image": "http:\/\/thinkadminv5.net\/upload\/4778718eb225c012\/38ebe1fa85149a1a.png",
"chance": 10,
"score": 50
},
{
"id": 2,
"title": "10积分",
"image": "",
"chance": 10,
"score": 10
},
{
"id": 4,
"title": "5积分",
"image": "",
"chance": 10,
"score": 5
},
{
"id": 7,
"title": "100积分",
"image": "",
"chance": 5,
"score": 100
}
],
"num": 5
}
}
</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;">data.prize</td>
<td style="text-align: left;">string</td>
<td>奖品列表</td>
</tr>
<tr>
<td style="text-align: left;">data.prize.title</td>
<td style="text-align: left;">string</td>
<td>奖品标题</td>
</tr>
<tr>
<td style="text-align: left;">data.prize.image</td>
<td style="text-align: left;">string</td>
<td>奖品图片</td>
</tr>
<tr>
<td style="text-align: left;">data.prize.score</td>
<td style="text-align: left;">string</td>
<td>奖励积分</td>
</tr>
<tr>
<td style="text-align: left;">data.num</td>
<td style="text-align: left;">string</td>
<td>用户剩余抽奖次数</td>
</tr>
</tbody>
</table>
<h5>失败返回示例</h5>
<pre><code>{
"code": "0",
"msg": "活动时间已结束,请下次再来",
"data": []
}
</code></pre>