简要描述:

  • 我的中奖记录接口

请求域名:

请求URL:

plugin.lucky-draw.frontend.draw.getMyRecord

参数:

参数名 是否必须 类型 说明
lotteryId int 抽奖活动id

返回示例:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "my_record": {
            "total": 19,
            "per_page": 15,
            "current_page": 1,
            "last_page": 2,
            "next_page_url": "http://dev.weifeng.com/addons/yun_shop/api.php?page=2",
            "prev_page_url": null,
            "from": 1,
            "to": 15,
            "data": [
                {
                    "id": 1,
                    "activity_id": null,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 3,
                    "point": 10,
                    "love": null,
                    "amount": null,
                    "coupon_id": null,
                    "created_at": null,
                    "updated_at": null,
                    "has_one_prize": {
                        "id": 3,
                        "uniacid": 3,
                        "name": "三等奖",
                        "type": 3,
                        "coupon_id": 0,
                        "point": 0,
                        "love": 10,
                        "amount": 0,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/53c7b5df48f1418ca1143493c0395e5c.png",
                        "prize_num": 13,
                        "chance": 30,
                        "created_at": "2019-07-09 18:33:16",
                        "updated_at": "2019-07-11 11:34:06",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 2,
                    "activity_id": null,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 2,
                    "point": 10,
                    "love": null,
                    "amount": null,
                    "coupon_id": null,
                    "created_at": null,
                    "updated_at": null,
                    "has_one_prize": {
                        "id": 2,
                        "uniacid": 3,
                        "name": "二等奖",
                        "type": 4,
                        "coupon_id": 0,
                        "point": 0,
                        "love": 0,
                        "amount": 10,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/728a671eb472a51da7308e414f98f954.jpg",
                        "prize_num": 15,
                        "chance": 20,
                        "created_at": "1970-01-01 08:33:39",
                        "updated_at": "2019-07-11 11:30:43",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 3,
                    "activity_id": null,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 1,
                    "point": null,
                    "love": 10,
                    "amount": null,
                    "coupon_id": null,
                    "created_at": null,
                    "updated_at": null,
                    "has_one_prize": {
                        "id": 1,
                        "uniacid": 3,
                        "name": "一等奖",
                        "type": 2,
                        "coupon_id": 0,
                        "point": 10,
                        "love": 0,
                        "amount": 0,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/e0493cf82bfc7e937eba6ef6c098bf12.jpg",
                        "prize_num": 18,
                        "chance": 10,
                        "created_at": "2019-07-09 18:32:28",
                        "updated_at": "2019-07-11 11:25:37",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 4,
                    "activity_id": null,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 4,
                    "point": null,
                    "love": null,
                    "amount": null,
                    "coupon_id": 1,
                    "created_at": null,
                    "updated_at": null,
                    "has_one_prize": {
                        "id": 4,
                        "uniacid": 3,
                        "name": "四等奖",
                        "type": 1,
                        "coupon_id": 1,
                        "point": 0,
                        "love": 0,
                        "amount": 0,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/d7bb26e87e47e6636add2223a721b499.jpg",
                        "prize_num": 19,
                        "chance": 5,
                        "created_at": "2019-07-10 09:34:57",
                        "updated_at": "2019-07-10 18:30:04",
                        "has_one_coupon": {
                            "id": 1,
                            "name": "满100减10元测试"
                        }
                    }
                },
                {
                    "id": 5,
                    "activity_id": 1,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 3,
                    "point": 0,
                    "love": 10,
                    "amount": 0,
                    "coupon_id": 0,
                    "created_at": "2019-07-10 18:22:06",
                    "updated_at": "2019-07-10 18:22:06",
                    "has_one_prize": {
                        "id": 3,
                        "uniacid": 3,
                        "name": "三等奖",
                        "type": 3,
                        "coupon_id": 0,
                        "point": 0,
                        "love": 10,
                        "amount": 0,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/53c7b5df48f1418ca1143493c0395e5c.png",
                        "prize_num": 13,
                        "chance": 30,
                        "created_at": "2019-07-09 18:33:16",
                        "updated_at": "2019-07-11 11:34:06",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 6,
                    "activity_id": 1,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 2,
                    "point": 10,
                    "love": 0,
                    "amount": 0,
                    "coupon_id": 0,
                    "created_at": "2019-07-10 18:29:08",
                    "updated_at": "2019-07-10 18:29:08",
                    "has_one_prize": {
                        "id": 2,
                        "uniacid": 3,
                        "name": "二等奖",
                        "type": 4,
                        "coupon_id": 0,
                        "point": 0,
                        "love": 0,
                        "amount": 10,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/728a671eb472a51da7308e414f98f954.jpg",
                        "prize_num": 15,
                        "chance": 20,
                        "created_at": "1970-01-01 08:33:39",
                        "updated_at": "2019-07-11 11:30:43",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 7,
                    "activity_id": 1,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 4,
                    "point": 0,
                    "love": 0,
                    "amount": 0,
                    "coupon_id": 1,
                    "created_at": "2019-07-10 18:30:04",
                    "updated_at": "2019-07-10 18:30:04",
                    "has_one_prize": {
                        "id": 4,
                        "uniacid": 3,
                        "name": "四等奖",
                        "type": 1,
                        "coupon_id": 1,
                        "point": 0,
                        "love": 0,
                        "amount": 0,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/d7bb26e87e47e6636add2223a721b499.jpg",
                        "prize_num": 19,
                        "chance": 5,
                        "created_at": "2019-07-10 09:34:57",
                        "updated_at": "2019-07-10 18:30:04",
                        "has_one_coupon": {
                            "id": 1,
                            "name": "满100减10元测试"
                        }
                    }
                },
                {
                    "id": 8,
                    "activity_id": 1,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 3,
                    "point": 0,
                    "love": 10,
                    "amount": 0,
                    "coupon_id": 0,
                    "created_at": "2019-07-10 18:45:37",
                    "updated_at": "2019-07-10 18:45:37",
                    "has_one_prize": {
                        "id": 3,
                        "uniacid": 3,
                        "name": "三等奖",
                        "type": 3,
                        "coupon_id": 0,
                        "point": 0,
                        "love": 10,
                        "amount": 0,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/53c7b5df48f1418ca1143493c0395e5c.png",
                        "prize_num": 13,
                        "chance": 30,
                        "created_at": "2019-07-09 18:33:16",
                        "updated_at": "2019-07-11 11:34:06",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 9,
                    "activity_id": 1,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 1,
                    "point": 10,
                    "love": 0,
                    "amount": 0,
                    "coupon_id": 0,
                    "created_at": "2019-07-10 18:46:19",
                    "updated_at": "2019-07-10 18:46:19",
                    "has_one_prize": {
                        "id": 1,
                        "uniacid": 3,
                        "name": "一等奖",
                        "type": 2,
                        "coupon_id": 0,
                        "point": 10,
                        "love": 0,
                        "amount": 0,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/e0493cf82bfc7e937eba6ef6c098bf12.jpg",
                        "prize_num": 18,
                        "chance": 10,
                        "created_at": "2019-07-09 18:32:28",
                        "updated_at": "2019-07-11 11:25:37",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 10,
                    "activity_id": 1,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 3,
                    "point": 0,
                    "love": 10,
                    "amount": 0,
                    "coupon_id": 0,
                    "created_at": "2019-07-11 11:21:53",
                    "updated_at": "2019-07-11 11:21:53",
                    "has_one_prize": {
                        "id": 3,
                        "uniacid": 3,
                        "name": "三等奖",
                        "type": 3,
                        "coupon_id": 0,
                        "point": 0,
                        "love": 10,
                        "amount": 0,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/53c7b5df48f1418ca1143493c0395e5c.png",
                        "prize_num": 13,
                        "chance": 30,
                        "created_at": "2019-07-09 18:33:16",
                        "updated_at": "2019-07-11 11:34:06",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 11,
                    "activity_id": 1,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 3,
                    "point": 0,
                    "love": 10,
                    "amount": 0,
                    "coupon_id": 0,
                    "created_at": "2019-07-11 11:25:19",
                    "updated_at": "2019-07-11 11:25:19",
                    "has_one_prize": {
                        "id": 3,
                        "uniacid": 3,
                        "name": "三等奖",
                        "type": 3,
                        "coupon_id": 0,
                        "point": 0,
                        "love": 10,
                        "amount": 0,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/53c7b5df48f1418ca1143493c0395e5c.png",
                        "prize_num": 13,
                        "chance": 30,
                        "created_at": "2019-07-09 18:33:16",
                        "updated_at": "2019-07-11 11:34:06",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 12,
                    "activity_id": 1,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 2,
                    "point": 0,
                    "love": 0,
                    "amount": 10,
                    "coupon_id": 0,
                    "created_at": "2019-07-11 11:25:26",
                    "updated_at": "2019-07-11 11:25:26",
                    "has_one_prize": {
                        "id": 2,
                        "uniacid": 3,
                        "name": "二等奖",
                        "type": 4,
                        "coupon_id": 0,
                        "point": 0,
                        "love": 0,
                        "amount": 10,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/728a671eb472a51da7308e414f98f954.jpg",
                        "prize_num": 15,
                        "chance": 20,
                        "created_at": "1970-01-01 08:33:39",
                        "updated_at": "2019-07-11 11:30:43",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 13,
                    "activity_id": 1,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 2,
                    "point": 0,
                    "love": 0,
                    "amount": 10,
                    "coupon_id": 0,
                    "created_at": "2019-07-11 11:25:31",
                    "updated_at": "2019-07-11 11:25:31",
                    "has_one_prize": {
                        "id": 2,
                        "uniacid": 3,
                        "name": "二等奖",
                        "type": 4,
                        "coupon_id": 0,
                        "point": 0,
                        "love": 0,
                        "amount": 10,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/728a671eb472a51da7308e414f98f954.jpg",
                        "prize_num": 15,
                        "chance": 20,
                        "created_at": "1970-01-01 08:33:39",
                        "updated_at": "2019-07-11 11:30:43",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 14,
                    "activity_id": 1,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 3,
                    "point": 0,
                    "love": 10,
                    "amount": 0,
                    "coupon_id": 0,
                    "created_at": "2019-07-11 11:25:32",
                    "updated_at": "2019-07-11 11:25:32",
                    "has_one_prize": {
                        "id": 3,
                        "uniacid": 3,
                        "name": "三等奖",
                        "type": 3,
                        "coupon_id": 0,
                        "point": 0,
                        "love": 10,
                        "amount": 0,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/53c7b5df48f1418ca1143493c0395e5c.png",
                        "prize_num": 13,
                        "chance": 30,
                        "created_at": "2019-07-09 18:33:16",
                        "updated_at": "2019-07-11 11:34:06",
                        "has_one_coupon": null
                    }
                },
                {
                    "id": 15,
                    "activity_id": 1,
                    "uniacid": 3,
                    "member_id": 1,
                    "prize_id": 1,
                    "point": 10,
                    "love": 0,
                    "amount": 0,
                    "coupon_id": 0,
                    "created_at": "2019-07-11 11:25:37",
                    "updated_at": "2019-07-11 11:25:37",
                    "has_one_prize": {
                        "id": 1,
                        "uniacid": 3,
                        "name": "一等奖",
                        "type": 2,
                        "coupon_id": 0,
                        "point": 10,
                        "love": 0,
                        "amount": 0,
                        "thumb": null,
                        "thumb_url": "http://dev.weifeng.com/static/upload/image/e0493cf82bfc7e937eba6ef6c098bf12.jpg",
                        "prize_num": 18,
                        "chance": 10,
                        "created_at": "2019-07-09 18:32:28",
                        "updated_at": "2019-07-11 11:25:37",
                        "has_one_coupon": null
                    }
                }
            ]
        }
    }
}

错误时返回:


返回data.record(我的中奖记录)参数说明:

参数名 类型 说明
point string 积分
love string 爱心值
amount string 余额
data.record.data.has_one_coupon.name string 优惠卷名称

备注:

  • 更多返回错误代码请看首页的错误代码描述