ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC=2,3] * * * * * * * * * * * * * * * ## 1. 抽奖商品列表获取接口 > 商品列表 +++ post:/api.php/api.php/Lottery/userLottery *string:access_token#访问Token【Token附加参数,由前端算法生成】 *string:user_token#用户Token【由登录接口返回的user_token】 *string:member_id#用户id <<< success 返回示例: { "code": 0, "msg": "操作成功", "data": { "total": 3, "per_page": "10", "current_page": 1, "last_page": 1, "data": [ { "goods_name": "角色1", "goods_price": "20", "goods_integral": 200, "id": 5, "path": "20190322/72d6bbaf8fff987288d9fe12555f3f84.jpg" }, { "goods_name": "钻石*60", "goods_price": "6", "goods_integral": 600, "id": 1, "path": "20190322/319b7b66cd0addc0ac543a5fc0471e97.jpg" }, { "goods_name": "钻石*680", "goods_price": "59", "goods_integral": 680, "id": 4, "path": "20190322/319b7b66cd0addc0ac543a5fc0471e97.jpg" } ] }, "exe_time": "2.164502" } +++ * * * * * * * * * * * * * * * ## 2. 验证用户是否可以抽奖接口 > 验证用户是否可以抽奖接口 +++ post:/lottery/checkIsCanLottery *string:access_token#访问Token【Token附加参数,由前端算法生成】 *string:user_token#用户Token【由登录接口返回的user_token】 *string:member_id#用户id <<< success 返回示例: { "code": 0, "msg": "可以抽奖!", "data": [], "exe_time": "0.561000" } <<< error1 返回示例: { "code": 400, "msg": "您抽奖次数已经到达当天次数限制最大值!", "exe_time": "0.630000" } +++ * * * * * * * * * * * * * * * ## 3. 抽奖接口 > 用户抽奖 +++ post:/api.php/api.php/Lottery/userLottery *string:access_token#访问Token【Token附加参数,由前端算法生成】 *string:user_token#用户Token【由登录接口返回的user_token】 *string:mobile#【用户登录以后填写的手机号】 *string:member_id#【用户的id】 <<< success 返回示例: { "code": 0, "msg": "操作成功", "data": { "gid": 4, "goods_name": "钻石*6801", "exchange_info": " ", "path": "http://roadshow.funartlab.cn/upload/picture/20190408/fbfbc77b876a19c60ea419e7b3b3d384.jpg" }, "exe_time": "2.913167" } <<< error1 返回示例: { "code": 500, "msg": "积分不足", "exe_time": "0.643037" } +++