简要描述:

请求URL:

GET/plugin.redpack-tool.frontend.homePage.index

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "time_between": {
            "start_time": 12,
            "end_time": 16
        },
        "surplus_number": 3,
        "status_button": {
            "value": 1,
            "tilte": "立即领取"
        },
        "redpack_info": {
            "redpack_amount_total": "20.00",
            "redpack_number": 10,
            "surplus_number": 10
        },
        "quota_info": {
            "quota_total": "100.00",
            "use_total": 0,
            "surplus_total": 100
        },
        "invite_set": [
            "推荐2人可获得1次抢红包机会",
            "推荐4人可获得3次抢红包机会"
        ],
        "receive_logs": {
            "current_page": 1,
            "data": [
                {
					"id": 1,
                    "uid": 698211,
                    "amount": "1.28",
                    "member": {
                        "uid": 698211,
                        "nickname": "15945596374",
                        "realname": "",
                        "mobile": "15945596374",
                        "avatar": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/newimage/6c3ebd43e5bf23543930dcbbe9e7629f.jpeg",
                        "avatar_image": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/newimage/6c3ebd43e5bf23543930dcbbe9e7629f.jpeg",
                        "username": "15945596374"
                    }
                }
            ],
            "first_page_url": "http://mdzz.com/admin/shop?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://mdzz.com/admin/shop?page=1",
            "next_page_url": null,
            "path": "http://mdzz.com/admin/shop",
            "per_page": 15,
            "prev_page_url": null,
            "to": 1,
            "total": 1
        },
        "introduction": "<p>alsfjasf</p>",
        "goods_list": {
            "current_page": 1,
            "data": [
                {
                    "id": 583,
                    "price": "10000.00",
                    "title": "健康博士—会员激活券",
                    "thumb": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/07/AK0z6CypiwRccL6II2Q5qI50C5NqcK.png",
                    "quota_proportion": 33,
                    "status_name": null
                },
                {
                    "id": 784,
                    "price": "99.00",
                    "title": "奖品专享--不限食压片糖果科学减脂无需节食--八月初发货介意者勿拍 !",
                    "thumb": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/07/CMNpnmluMBum44LbeEtmEPuzpN33al.png",
                    "quota_proportion": 50,
                    "status_name": null
                }
            ],
            "first_page_url": "http://mdzz.com/admin/shop?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://mdzz.com/admin/shop?page=1",
            "next_page_url": null,
            "path": "http://mdzz.com/admin/shop",
            "per_page": 15,
            "prev_page_url": null,
            "to": 2,
            "total": 2
        }
    }
}

返回参数说明:

参数名 类型 说明
time_between arr 领取时间区间
time_between->start_time int 开始时间
time_between->end_time int 结束时间
surplus_number int 剩余领取次数
status_button arr 领取按钮数组
status_button->value int 值: 1:可以领取 0:不可以领取 -1:额度不足不可以领取
status_button->tilte atr 按钮名称
redpack_info arr 本轮红包信息
redpack_info->redpack_amount_total float 本轮红包额度
redpack_info->redpack_number int 本轮红包数量
redpack_info->surplus_number int 本轮剩余数量
quota_info arr 会员红包额度信息
quota_info->quota_total float 总额度数量
quota_info->use_total int 已使用额度
quota_info->surplus_total int 剩余额度数量
invite_set arr 邀请设置,循环即可
receive_logs arr 今日领取记录,带分页
receive_logs->data->id int 记录id
receive_logs->data->amount float 领取金额
receive_logs->data->created_at str 领取时间
receive_logs->data->member arr 会员信息
receive_logs->data->member->nickname str 会员昵称
receive_logs->data->member->avatar_image str 会员头像
introduction str 活动介绍
goods_list arr 商品列表,带分页
goods_list->data->id int 商品id
goods_list->data->price float 商品价格
goods_list->data->title str 商品名称
goods_list->data->thumb str 商品图片
goods_list->data->quota_proportion float 红包比例