简要描述:

请求域名:

  • http://xx.com

请求URL:

POST/plugin.local-life.api.store.relate-goods

参数:

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

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "success",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 26,
                "uniacid": 1,
                "midground_goods_id": 1,
                "goods_id": 37,
                "product_type": 1,
                "usage": 0,
                "sale_start_at": 1727884800,
                "sale_end_at": 1732723199,
                "shop_type": 2,
                "package": [
                    {
                        "title": "中餐",
                        "contents": [
                            {
                                "title": "炒饭",
                                "usage": 10,
                                "price": 10000,
                                "describes": []
                            }
                        ]
                    }
                ],
                "purchase": {
                    "id": 1,
                    "created_at": 1729150205,
                    "updated_at": 1729561017,
                    "product_id": 1,
                    "need_mobile": 2,
                    "expire": {
                        "type": 2,
                        "days": 30,
                        "at": "2024-11-30"
                    },
                    "unavailable_date": {
                        "weekly": {
                            "selected": 1,
                            "weekdays": [
                                "Wednesday",
                                "Tuesday"
                            ]
                        },
                        "holidays": {
                            "selected": 1
                        },
                        "specified": {
                            "selected": 1,
                            "dates": [
                                {
                                    "start_date": "2024-11-28",
                                    "end_date": "2024-11-29"
                                },
                                {
                                    "start_date": "",
                                    "end_date": ""
                                }
                            ]
                        }
                    },
                    "consume": {
                        "type": 2,
                        "times": [
                            {
                                "start_time": "09:22",
                                "end_time": "16:22"
                            }
                        ]
                    },
                    "buy_limit_rule": {
                        "limited": 1,
                        "num": 7
                    },
                    "booking_rule": {
                        "need_booking": 1,
                        "advance_num": 4,
                        "advance_unit": 1
                    },
                    "with_discount": 2,
                    "usage_sheet_rule": {
                        "unlimited": 2,
                        "num": 65
                    },
                    "usage_people_rule": {
                        "unlimited": 2,
                        "num": 21
                    },
                    "usage_describes": [
                        {
                            "title": "5555",
                            "contents": [
                                {
                                    "info": "还让他忽然他"
                                }
                            ]
                        },
                        {
                            "title": "44444",
                            "contents": [
                                {
                                    "info": "口语入库员开瑞坦"
                                }
                            ]
                        }
                    ]
                },
                "created_at": "2024-10-21 17:33:08",
                "updated_at": "2024-10-22 10:12:28",
                "deleted_at": null,
                "brand_id": 1,
                "limit_store": "12",
                "has_one_goods": {
                    "id": 37,
                    "uniacid": 1,
                    "brand_id": 5,
                    "type": 1,
                    "status": 1,
                    "display_order": 0,
                    "title": "葱油拌面",
                    "thumb": "https://supply.yunzmall.com/uploads/file/ad4540a024b7cc6f1d32025c96fd7198_20241017152911.png",
                    "thumb_url": "a:1:{i:0;s:92:\"https://supply.yunzmall.com/uploads/file/e236dc764501208806a29f94ea8c812c_20241017152917.png\";}",
                    "sku": "件",
                    "description": "",
                    "content": "<p>固特威个</p>",
                    "goods_sn": "",
                    "product_sn": "",
                    "market_price": "0.63",
                    "price": "1.62",
                    "cost_price": "1.75",
                    "stock": 0,
                    "reduce_stock_method": 2,
                    "show_sales": 0,
                    "real_sales": 0,
                    "weight": "0.00",
                    "has_option": 0,
                    "is_new": 0,
                    "is_hot": 0,
                    "is_discount": 0,
                    "is_recommand": 0,
                    "is_comment": 0,
                    "is_deleted": 0,
                    "created_at": "2024-10-21 17:33:08",
                    "deleted_at": null,
                    "updated_at": "2024-10-21 17:33:08",
                    "comment_num": 0,
                    "is_plugin": 0,
                    "plugin_id": 190,
                    "virtual_sales": 0,
                    "no_refund": 0,
                    "need_address": 0,
                    "type2": 1,
                    "old_id": null,
                    "volume": null,
                    "alias": "",
                    "is_hide": 1,
                    "min_price": "1.62",
                    "max_price": "1.62",
                    "hide_goods_sales": 0,
                    "hide_goods_sales_alone": 0,
                    "hide_goods_pic": 0,
                    "background_pic": null,
                    "advert_pic": null,
                    "status_name": "上架"
                }
            }
        ],
        "first_page_url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
        "links": [
            {
                "url": null,
                "label": "&laquo; 上一页",
                "active": false
            },
            {
                "url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "下一页 &raquo;",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "http://119.91.205.224//addons/yun_shop/api.php",
        "per_page": 10,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    }
}

返回参数说明:(参考商品列表接口)

参数名 类型 说明