简要描述:

  • 蛋糕叔叔-推荐商品列表

请求URL:

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

参数:

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

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 3886,
                "title": "手榴弹",
                "thumb": "https://supply.yunzmall.com/uploads/file/da944987652fcf230814166bd9c18154_20220922173856.webp",
                "price": "0.00",
                "market_price": "0.00",
                "show_sales": 0,
                "name": "测试品牌",
                "status_name": null
            }
        ],
        "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": 40,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    }
}

goods:

参数名 类型 说明
id int id
title string 商品名称
thumb string 图片
price string 售价
market_price string 市场价
show_sales int 销量
name string 品牌名称