首页
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取活动信息和用户信息</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xxx.com/html5/Kangaroo/v1/index</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET </li>
</ul>
<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;">userId</td>
<td style="text-align: left;">string</td>
<td>用户ID</td>
</tr>
<tr>
<td style="text-align: left;">userType</td>
<td style="text-align: left;">string</td>
<td>用户类型</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code":200,
"message":"SUCCESS",
"time":1563954147,
"data":{
"user_status":0,#用户报名状态,0未报名,1已报名
"act_status":0,#活动状态,0报名未开始,1活动未开始,2排行未开始,3排行已开始,4活动已结束
"user":{
"money":0,#获得的奖励
"u_pic":"",
"u_nic":"",
"num":"",#拉新数
"effective_num":"",#有效拉新数
},
"boxs":[#获得的宝箱,当活动已开始且用户已报名时,返回此字段
{
"id":"1",#宝箱ID
"box_type":"1",#宝箱类型 1白银 2黄金 3白金 4钻石 5王者
"box_status":"1",#宝箱状态 0待开启 1已开启
"box_money":"2.00",#宝箱金额,如果宝箱尚未开启,金额为0
}
],
"user_rank":"99+",#用户排名,排行榜已开始且用户已报名时,返回用户排名
"box_setting":{#宝箱配置信息
"1": {
"num": 5,
"box_type": 1,
"max_money": 88
},
"2": {
"num": 10,
"box_type": 2,
"max_money": 188
},
"3": {
"num": 20,
"box_type": 3,
"max_money": 368
},
"4": {
"num": 50,
"box_type": 4,
"max_money": 888
},
"5": {
"num": 100,
"box_type": 5,
"max_money": 1688
}
},
"freesheet": 0,#是否开启拉新免单,0未开启1已开启
"down_url": "http://t.uc.cn/1_988nx",#分享URL
}
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>