简要描述:

前端心跳轮询该接口更新视频观看时间

请求域名:

  • http://xx.com

请求URL:

POST/plugin.video-promotion-rewards.frontend.income.getDetail

参数:

参数名 是否必须 类型 说明
id int 权益id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "detail": {
            "id": 1,
            "uniacid": 1,
            "member_id": 21,
            "order_id": 257,
            "video_id": 1,
            "activity_id": 1,
            "price": "100.00",
            "day_limit": 1,
            "day_count": 1,
            "multiple": 1,
            "created_at": null,
            "updated_at": null,
            "goods_id": 307,
            "cover": "",
            "video": {
                "id": 1,
                "title": "是机顶盒",
                "cover": "images/1/2022/03/9edd2d560fdfac2bb99d129195d0fbd4.jpg",
                "video": "newimage/710d0c74837c40f07ecf6d83a9a79726.mp4",
                "video_src": "newimage/710d0c74837c40f07ecf6d83a9a79726.mp4",
                "comment_sum": 0
            }
        },
        "record_list": {
            "current_page": 1,
            "data": [
                {
                    "id": 1,
                    "uniacid": 1,
                    "order_id": 257,
                    "activity_id": 1,
                    "watch_member_id": 21,
                    "price": "100.00",
                    "record_id": 5,
                    "member_id": 1,
                    "created_at": "2024-11-18 14:10:36",
                    "updated_at": "2024-11-18 14:10:36",
                    "watch_member": {
                        "uid": 21,
                        "nickname": "13*******15",
                        "avatar": "http://www.shop777.com/static/images/photo-mr.jpg",
                        "avatar_image": "http://www.shop777.com/static/images/photo-mr.jpg",
                        "username": "13*******15"
                    }
                }
            ],
            "first_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
            "links": [
                {
                    "url": null,
                    "label": "« 上一页",
                    "active": false
                },
                {
                    "url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "下一页 »",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "http://www.shop777.com/addons/yun_shop/api.php",
            "per_page": 15,
            "prev_page_url": null,
            "to": 1,
            "total": 1
        },
        "member_list": []
    }
}

返回参数说明:

参数名 类型 说明
detail.id int 权益ID
    |detail.id|int|权益ID|
    |detail.uniacid|int|公众号ID|
    |detail.member_id|int|会员ID|
    |detail.order_id|int|订单ID|
    |detail.video_id|int|视频ID|
    |detail.activity_id|int|活动ID|
    |detail.price|float|单次金额|
    |detail.day_limit|int|每日上限|
    |detail.day_count|int|每日已领取|
	|detail.single_price|float|单次领取金额|
    |detail.multiple|int|倍数|
    |detail.video.id|int|视频ID|
	|detail.video.title|string|视频名称|
	|detail.video.cover|string|视频封面|
	|detail.video.video_src|string|视频地址|
    |record_list.data[n].id|int|奖励记录ID|
    |record_list.data[n].order_id|int|订单ID|
    |record_list.data[n].activity_id|int|活动ID|
    |record_list.data[n].watch_member_id|int|观看会员ID|
	|record_list.data[n].watch_member.uid|int|观看会员ID|
	|record_list.data[n].watch_member.nickname|string|观看会员昵称|
	|record_list.data[n].watch_member.avatar|string|观看会员头像|
    |record_list.data[n].price|string|奖励金额|
    |record_list.data[n].record_id|int|观看记录ID|
    |record_list.data[n].member_id|int|奖励会员ID|
    |record_list.data[n].created_at|string|奖励时间|
	|member_list|array|助力成功会员数组,长度大于0时显示阻力弹窗用,只返回一次|
    |member_list[n].uid|int|会员id|
	|member_list[n].nickname|string|会员昵称|
	|member_list[n].avatar|string|会员头像|