简要描述:

请求URL:

GET/plugin.producer.frontend.producer.getProducerCenterById

参数:

参数名 是否必须 类型 说明
producer_id yes int 厂家id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "producer": {
            "id": 3,
            "producer_name": "哈尔滨大润发1",
            "province_name": "黑龙江省",
            "city_name": "哈尔滨市",
            "district_name": "道里区",
            "logo": "image/9c3edf1435bf0cf2efa525696cf217b7.jpg",
            "business_license": [
                "image/9c3edf1435bf0cf2efa525696cf217b7.jpg"
            ],
            "producer_notice": "<p>我是公告</p>",
            "refund_explain": "<p>我是说明</p>",
            "sell_total": 0,
            "address_name": "黑龙江省 - 哈尔滨市 - 道里区",
            "logo_url": "http://mdzz.cc/attachment/image/9c3edf1435bf0cf2efa525696cf217b7.jpg",
            "business_license_url": [
                "http://mdzz.cc/attachment/image/9c3edf1435bf0cf2efa525696cf217b7.jpg"
            ]
        },
        "goods_list": {
            "total": 1,
            "per_page": 15,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 1,
            "data": [
                {
                    "id": 5,
                    "thumb": "image/9c3edf1435bf0cf2efa525696cf217b7.jpg",
                    "title": "换机油",
                    "price": "50.00",
                    "market_price": "50.00",
                    "status": 1,
                    "status_name": "上架"
                }
            ]
        }
    }
}

错误时返回:

返回参数说明:

参数名 类型 说明
producer->id int 厂家id
producer->producer_name str 厂家名称
producer->logo_url str 厂家logo
producer->sell_total int 热销x件
producer->business_license_url arr 厂家证照数组
producer->producer_notice str 厂家公告
producer->refund_explain str 退货说明
goods_list arr 厂家商品数组
goods_list->id int 商品id
goods_list->title str 商品名称
goods_list->thumb_url str 商品图片
goods_list->price float 商品价格
goods_list->market_price float 商品原价