简要描述:

  • 蛋糕叔叔-抢购商品列表

请求URL:

GET/route=plugin.yz-supply-cake.frontend.goods.goods.getGoodsByTimeEndAscGoods

参数:

参数名 类型 说明
page int 分页
pageSize int 每页数量不传默认20
city string 城市名称 否 (全国的时候不要传这个值)

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "name": "测试品牌",
                "id": 3886,
                "title": "手榴弹",
                "thumb": "https://supply.yunzmall.com/uploads/file/da944987652fcf230814166bd9c18154_20220922173856.webp",
                "price": "0.00",
                "market_price": "0.00",
                "show_sales": 0,
                "promotion_start_at": "2019-10-31 15:42:02",
                "promotion_end_at": "2022-11-31 15:42:02"
            },
            {
                "name": "测试品牌",
                "id": 3886,
                "title": "手榴弹",
                "thumb": "https://supply.yunzmall.com/uploads/file/da944987652fcf230814166bd9c18154_20220922173856.webp",
                "price": "0.00",
                "market_price": "0.00",
                "show_sales": 0,
                "promotion_start_at": "2019-10-31 15:42:02",
                "promotion_end_at": "2019-12-30 15:42:02"
            }
        ],
        "first_page_url": "http://shop/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://shop/addons/yun_shop/api.php?page=1",
        "next_page_url": null,
        "path": "http://shop/addons/yun_shop/api.php",
        "per_page": 20,
        "prev_page_url": null,
        "to": 2,
        "total": 2
    }
}

goods:

参数名 类型 说明
id int id
title string 商品名称
thumb string 图片
price string 售价
market_price string 市场价
show_sales int 销量
name string 品牌
promotion_start_at string 活动开始时间
promotion_end_at string 活动结束时间