简要描述:

请求域名:

  • http://xx.com

请求URL:

POST/plugin.merchandise-prize-draw.frontend.index.get-lottery

参数:

参数名 是否必须 类型 说明
goods_id int 商品id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取成功",
    "data": {
        "id": 5,
        "uniacid": 1,
        "goods_id": 541,
        "round": 4,
        "status": 0,
        "close_time": 0,
        "lottery_status": 1,
        "prize_data": {
            "id": 2,
            "uniacid": 1,
            "goods_id": 541,
            "is_open": 1,
            "order_num": 10,
            "prize_type": 1,
            "prize_num": 222,
            "people_num": 1,
            "prize_type_two": 2,
            "prize_num_two": 333,
            "people_num_two": 3,
            "prize_type_three": 3,
            "prize_num_three": 555,
            "people_num_three": 5,
            "prize_img": "http://www.shop777.com/static/upload/images/1/2025/01/3ecfa71e272b51ba2a4a6a99efa31abe.jpg",
			"first_prize_name": "1余额",
            "second_prize_name": "2爱心值LL",
            "third_prize_name": "3冻结爱心值DD"
            "created_at": "2025-02-27 13:47:25",
            "updated_at": "2025-02-27 14:49:07"
        },
        "total_count": 0,
        "remark": "",
        "created_at": "2025-02-27 14:49:16",
        "updated_at": "2025-02-27 14:50:07",
        "count_order": 10,
        "active_status": 2,
        "prize_member": {
            "first_prize": [
                {
                    "uid": 33,
                    "avatar": "http://www.shop777.com/static/images/photo-mr.jpg",
                    "nickname": "13*******11",
                    "avatar_image": "http://www.shop777.com/static/images/photo-mr.jpg",
                    "username": "13*******11"
                }
            ],
            "second_prize": [
                {
                    "uid": 33,
                    "avatar": "http://www.shop777.com/static/images/photo-mr.jpg",
                    "nickname": "13*******11",
                    "avatar_image": "http://www.shop777.com/static/images/photo-mr.jpg",
                    "username": "13*******11"
                }
            ],
            "third_prize": [
                {
                    "uid": 33,
                    "avatar": "http://www.shop777.com/static/images/photo-mr.jpg",
                    "nickname": "13*******11",
                    "avatar_image": "http://www.shop777.com/static/images/photo-mr.jpg",
                    "username": "13*******11"
                }
            ]
        }
    }
}

返回参数说明:

参数名 类型 说明
id int 活动唯一标识ID
uniacid int 平台关联ID(多商户系统标识)
goods_id int 关联商品ID
round int 抽奖轮次
close_time int 活动关闭时间戳(0表示未设置)
prize_data object 奖品配置数据(包含多级奖项设置)
├─ id int 奖品配置ID
├─ is_open int 是否开启抽奖(1-开启)
├─ order_num int 触发抽奖所需订单数量
├─ prize_type int 一等奖类型
├─ prize_num int 一等奖奖品数量
├─ people_num int 一等奖中奖人数
├─ prize_img string 规则图片URL
├─ first_prize_name string 一等奖 ,显示用比如300余额
├─ second_prize_name string 二等奖 ,显示用比如300可用爱心值
├─ third_prize_name string 三等奖 ,显示用比如300可用爱心值
├─ created_at string 配置创建时间(格式:YYYY-MM-DD HH:mm:ss)
├─ updated_at string 配置更新时间
total_count int 总参与次数
remark string 活动备注信息
created_at string 活动创建时间
updated_at string 活动更新时间
count_order int 当前达成抽奖条件的订单数量
active_status int 0未开奖,1开奖中,2已开奖
prize_member object 中奖成员信息
├─ first_prize array 一等奖获得者列表
│ ├─ uid int 用户ID
│ ├─ avatar string 用户头像URL
│ ├─ nickname string 用户昵称(脱敏显示)
│ ├─ username string 用户名(脱敏显示)
├─ second_prize array 二等奖获得者列表
├─ third_prize array 三等奖获得者列表