简要描述:

  • 热销商品

请求域名:

  • http://xx.com

请求URL:

POST:plugin.supplier.frontend.shop.index.get-is-hot

参数:

参数名 是否必须 类型 说明
sid int 供应商id
category_id int 分类id

返回示例:

正确时返回:

{
    "result":1,
    "msg":"查询成功",
    "data":{
        "current_page":1,
        "data":[
            {
                "id":92,
                "title":"延迟?",
                "thumb":"images/1/2020/04/hMHGFMOfHk52H5W23oIym4IIj2HQ3m.jpg",
                "price":"55.00",
                "vip_price":"55.00",
                "next_level_price":"55.00",
                "has_many_goods_discount":[
                    {
                        "id":1473,
                        "goods_id":92,
                        "level_discount_type":1,
                        "discount_method":1,
                        "level_id":0,
                        "discount_value":"",
                        "created_at":"2020-04-13 18:04:25",
                        "updated_at":"2020-04-13 18:04:25",
                        "deleted_at":null
                    }
                ]
            },
            {
                "id":24,
                "title":"测试招商",
                "thumb":"image/7b0e6463398f1890ac02074b5962655b.jpg",
                "price":"40.00",
                "vip_price":"40.00",
                "next_level_price":"40.00",
                "has_many_goods_discount":[
                    {
                        "id":535,
                        "goods_id":24,
                        "level_discount_type":1,
                        "discount_method":1,
                        "level_id":0,
                        "discount_value":"",
                        "created_at":"2019-05-07 15:27:31",
                        "updated_at":"2019-05-07 15:27:31",
                        "deleted_at":null
                    }
                ]
            }
        ],
        "first_page_url":"http://www.liao.com/admin/shop?page=1",
        "from":1,
        "last_page":1,
        "last_page_url":"http://www.liao.com/admin/shop?page=1",
        "next_page_url":null,
        "path":"http://www.liao.com/admin/shop",
        "per_page":10,
        "prev_page_url":null,
        "to":2,
        "total":2
    }
}

返回参数说明:

参数名 类型 说明
data object 热销商品
id int 商品id
title string 商品名称
thumb string 商品图片
price string 价格
vip_price string 会员价

备注:

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