简要描述:

请求域名:

  • http://xx.com

请求URL:

POST:plugin.store-cashier.frontend.store.near-by-goods.get-store-goods

参数:

参数名 是否必须 类型 说明
store_id int 门店ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取商品成功",
    "data": {
        "list": [
            {
                "id": 1,
                "store_id": 7,
                "goods_id": 243,
                "created_at": "2020-02-18 10:28:16",
                "updated_at": "2020-02-18 10:28:16",
                "has_one_goods": {
                    "id": 243,
                    "uniacid": 5,
                    "brand_id": 0,
                    "type": 1,
                    "status": 1,
                    "display_order": 10000,
                    "title": "自定义队列",
                    "thumb": "image/295912cd6a1bb741be2f89d3efed607a.jpg",
                    "thumb_url": "a:1:{i:0;s:42:\"image/53d923d0ced055113980a36396df6b2b.jpg\";}",
                    "sku": "个",
                    "description": "",
                    "content": "",
                    "goods_sn": "",
                    "product_sn": "",
                    "market_price": "0.00",
                    "price": "300.00",
                    "cost_price": "0.00",
                    "stock": 9864,
                    "reduce_stock_method": 0,
                    "show_sales": 161,
                    "real_sales": 161,
                    "weight": "3.00",
                    "has_option": 0,
                    "is_new": 0,
                    "is_hot": 0,
                    "is_discount": 0,
                    "is_recommand": 0,
                    "is_comment": 0,
                    "is_deleted": 0,
                    "created_at": "2019-12-17 11:53:59",
                    "deleted_at": null,
                    "updated_at": "2020-02-11 19:42:31",
                    "comment_num": 0,
                    "is_plugin": 0,
                    "plugin_id": 0,
                    "virtual_sales": 0,
                    "buy_way": 0,
                    "no_refund": 0,
                    "need_address": 0,
                    "type2": 1,
                    "old_id": null,
                    "status_name": "上架"
                }
            },
            {
                "id": 2,
                "store_id": 7,
                "goods_id": 212,
                "created_at": "2020-02-18 10:28:16",
                "updated_at": "2020-02-18 10:28:16",
                "has_one_goods": {
                    "id": 212,
                    "uniacid": 5,
                    "brand_id": 0,
                    "type": 1,
                    "status": 1,
                    "display_order": 10000,
                    "title": "自定义队列",
                    "thumb": "images/5/2019/06/JGOd9dvZloSVZs7sVyBLGYyY2vOOG7.jpg",
                    "thumb_url": "",
                    "sku": "个",
                    "description": "",
                    "content": "",
                    "goods_sn": "",
                    "product_sn": "",
                    "market_price": "0.00",
                    "price": "300.00",
                    "cost_price": "0.00",
                    "stock": 9894,
                    "reduce_stock_method": 0,
                    "show_sales": 130,
                    "real_sales": 130,
                    "weight": "3.00",
                    "has_option": 0,
                    "is_new": 0,
                    "is_hot": 0,
                    "is_discount": 0,
                    "is_recommand": 0,
                    "is_comment": 0,
                    "is_deleted": 0,
                    "created_at": "2019-07-10 10:13:30",
                    "deleted_at": null,
                    "updated_at": "2019-12-12 17:44:18",
                    "comment_num": 0,
                    "is_plugin": 0,
                    "plugin_id": 0,
                    "virtual_sales": 0,
                    "buy_way": 0,
                    "no_refund": 0,
                    "need_address": 0,
                    "type2": 1,
                    "old_id": null,
                    "status_name": "上架"
                }
            }
        ],
        "show_num": "3"
    }
}

返回参数说明:

参数名 类型 说明
result int 0:失败,1:成功
msg string 提示消息
data array 返回数据

返回参数 data 说明:

参数名 类型 说明
show_num int 展示数量

备注: