简要描述:

  • 品牌详情下的商品

请求URL:

GET/addons/yun_shop/api.php?i=6&route=goods.brand.get-brand-goods

参数:

参数名 是否必须 类型 说明
id int 品牌ID
as_id int 分站ID
page int 分页数

返回示例:

正确时返回:

{
    result: 1, 
    msg: "成功", 
    data: {
            total: 1, 
            per_page: 20, 
            current_page: 1, 
            last_page: 1, 
            next_page_url: null, 
            prev_page_url: null, 
            from: 1, 
            to: 1, 
            data: [
                {
                    id: 99, 
                    goods_id: 99, 
                    title: "123", 
                    thumb: "http://dev4.yunzshop.com/attachment/images/6/2017/11/s8Fk3Xe1O8cc33J8NmZWsJMK3EK88m.gif", 
                    price: "120.00", 
                    market_price: "200.00"
                }
            ]
        }
}

错误时返回:

{
result: 0,
msg: "请传入正确参数.",
data: [ ]
}

{
result: 0,
msg: "品牌已被删除或不存在.",
data: [ ]
}

返回参数说明:

参数名 类型 说明
id int 商品ID
goods_id int 商品ID
title string 商品标题
thumb string 商品图片完整路径
price float 商品金额(元)
market_price float 商品原价(市场价)

备注:

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