简要描述:

  • 每日红包领取页面接口

请求域名:

  • http://www.xxx.com

请求URL:

POST/route=plugin.red-packet.api.red-packet-logs.index

页面返回参数:

参数名 是否必须 类型 说明
thumb int 每日红包图片
content int 每日活动介绍
receive_one int 是否领取红包 0未领取 1领取
receive_amount_sum int 今天领取红包金额
redPacket int 今天红包金额
color string 背景颜色
receive_color string 立即领取颜色
amount_color string 额度不足颜色
out_color string 红包已领完颜色
red_packet_title string 红包自定义名称
business_hours_start string 开始领取时间 0或者为空 不显示倒计时

###页面红包商品返回参数: goods_list 商品列表

参数名 是否必须 类型 说明
id int 商品id
price int 金额
title string 商品名称
thumb string 商品图片
quota_proportion double 比例

###页面红包领取返回参数: receive_log['list'] 领取列表

参数名 是否必须 类型 说明
receive_amount int 领取金额
created_at int 领取时间
belongs_to_member['avatar_image'] string 会员图片
belongs_to_member['realname'] string 会员名称
amount_sum double 会员累计红包总额度
receive_amount double 会员累计领取红包总额度

###页面红包返回参数: link

参数名 是否必须 类型 说明
is_advert int 是否开启广告 0未开启,1已开启
is_red_packet_all_amount int 是否开启总额 0未开启,1已开启
is_red_packet_all_total int 是否开启总数 0未开启,1已开启
advert_url double 广告连接
is_browse string 是否观看过广告 0未观看,1已观看

###页面红包返回参数: amount

参数名 是否必须 类型 说明
id int 每日红包id
amount double 每日红包总额度
number_sum string 每日红包总数量
totle string 每日红包领取总人数

###页面红包返回参数: bonus(额外奖励)

参数名 是否必须 类型 说明
is_show int 是否显示,1-显示
is_receive int 是否可领取,1-可领取
receive_amount double 领取的金额

###页面红包返回参数: extra_red_packet(额外红包)

参数名 是否必须 类型 说明
is_extra_red_packet int 额外红包是否开启:1-开启,0-关闭
acquire_button bool true-可领取,false-不能领取
acquire_num int 剩余红包开启次数

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "content": "snickers 士力架 花生夹心巧克力",
        "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/QnyQ59JYqYayhnsnifY5NVYFWihyNW.png",
        "receive_log": {
            "list": [],
            "amount_sum": 0,
            "receive_amount": 0
        },
        "amount": {
            "id": 2,
            "amount": 500.21,
            "number_sum": "20",
            "receive": "0",
            "totle": 0
        },
        "goods_list": [
            {
                "id": 1,
                "price": "0.01",
                "title": "支付测试",
                "thumb": "http://dev3.yunzshop.com/attachment/images/3/2017/07/z1XplaLkFKd991D9CR8xNPC9ca3zKX.jpg",
                "quota_proportion": "5",
                "status_name": null
            },
            {
                "id": 2,
                "price": "90.00",
                "title": "测试",
                "thumb": "https://test-1251768088.cosgz.myqcloud.com/images/3/2017/07/a0MxLa5llupZ229MlgmlIEp2iEzeZt.jpg",
                "quota_proportion": "5",
                "status_name": null
            },
            {
                "id": 3,
                "price": "100.00",
                "title": "积分抵扣测试",
                "thumb": "http://dev3.yunzshop.com/attachment/images/3/2017/07/z1XplaLkFKd991D9CR8xNPC9ca3zKX.jpg",
                "quota_proportion": "5",
                "status_name": null
            }
        ],
        "receive_one": 0,
		"bonus": {
            "is_show": 1,
            "is_receive": 1,
            "receive_amount": 0
        },
		"extra_red_packet": {
            "is_extra_red_packet": "1",
            "acquire_button": false,
            "acquire_num": 0
        },
    }
}