简要描述:

请求域名:

  • http://xx.com

请求URL:

POST/plugin.check-in-rebate.frontend.index.get-base-info

参数:

参数名 是否必须 类型 说明
search obj 查询对象
search.status int 活动状态 1未开赛,2 进行中, 3已结束
search.title string 活动名称

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "activity": {
            "current_page": 1,
            "data": [
                {
                    "id": 1,
                    "uniacid": 1,
                    "title": "a",
                    "count_day": 12,
                    "is_continuous": 1,
                    "goods_id": 260,
                    "start_time": 1727712000,
                    "end_time": 1854115200,
                    "supplement_goods_id": 18,
                    "supplement_goods_price_level": [
                        {
                            "price": "10",
                            "level": 1
                        }
                    ],
                    "reward_ratio": "10.00",
                    "coupon_list": [
                        {
                            "id": 4,
                            "name": "商品优惠券0124",
                            "coupon_num": "12"
                        },
                        {
                            "id": 2,
                            "name": "电器优惠券-1",
                            "coupon_num": "13"
                        },
                        {
                            "id": 1,
                            "name": "测试优惠券1",
                            "coupon_num": "14"
                        }
                    ],
                    "check_in_limit": 1,
                    "detail": "<p>asdasda</p>",
                    "created_at": "2024-10-17 10:32:50",
                    "updated_at": "2024-10-17 10:46:56",
                    "status_name": "已结束"
                }
            ],
            "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": "&laquo; 上一页",
                    "active": false
                },
                {
                    "url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "下一页 &raquo;",
                    "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
        },
        "set": {
            "top_thumb_url": "http://www.shop777.com/static/upload/images/1/2022/11/046d8b5e840c7daab9de3095272a95bb.jpg",
            "plugin_name": "good打卡"
        }
    }
}

返回参数说明:

参数名 类型 说明
名称 类型 说明
activity obj 活动对象
activity.data array 活动数组
activity.data[n].id int 活动ID
activity.data[n].title string 活动名称
activity.data[n].start_time string 开始时间
activity.data[n].end_time string 结束时间
activity.data[n].status_name string 状态名称
set.top_thumb_url string 置顶图片地址
set.plugin_name string 插件名称