简要描述:

请求域名:

  • http://xx.com

请求URL:

POST/plugin.local-life.api.goods.detail

参数:

参数名 是否必须 类型 说明
goods_id int 商品id
longitude string 经度
latitude string 纬度

返回示例(参考商品列表接口):

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "id": 28,
        "uniacid": 1,
        "midground_goods_id": 2,
        "goods_id": 39,
        "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": 1729498804,
            "product_id": 1,
            "need_mobile": 2,
            "expire": {
                "type": 1,
                "days": 30,
                "at": ""
            },
            "unavailable_date": {
                "weekly": {
                    "selected": 0,
                    "weekdays": []
                },
                "holidays": {
                    "selected": 0
                },
                "specified": {
                    "selected": 0,
                    "dates": []
                }
            },
            "consume": {
                "type": 1,
                "times": []
            },
            "buy_limit_rule": {
                "limited": 0,
                "num": 0
            },
            "booking_rule": {
                "need_booking": 2,
                "advance_num": 0,
                "advance_unit": 1
            },
            "with_discount": 2,
            "usage_sheet_rule": {
                "unlimited": 1,
                "num": 0
            },
            "usage_people_rule": {
                "unlimited": 1,
                "num": 0
            },
            "usage_describes": []
        },
        "created_at": "2024-10-21 17:35:09",
        "updated_at": "2024-10-21 17:35:09",
        "deleted_at": null,
        "brand_id": 1,
        "limit_store": null,
        "available_coupon": [],
        "store": [
            {
                "id": 10,
                "uniacid": 1,
                "name": "测试门店3",
                "province_id": "110000",
                "city_id": "110100",
                "area_id": "110101",
                "province_name": "北京市",
                "city_name": "北京市",
                "area_name": "东城区",
                "address_detail": "萧岗",
                "longitude": "113.286267",
                "latitude": "23.204834",
                "tel": "075722285750",
                "midground_brand_id": "1",
                "open_time": [
                    {
                        "weeks": [
                            "周日",
                            "周一",
                            "周二"
                        ],
                        "times": []
                    }
                ],
                "facilities_and_service": "访问访问",
                "business_license": "https://supply.yunzmall.com/uploads/file/38f84c9b9b6abc7b6c3b976770ce8098_20241021114253.jpeg",
                "created_at": "2024-10-21 17:42:23",
                "updated_at": "2024-10-21 17:42:23",
                "store_id": 3,
                "distance": 1616
            },
            {
                "id": 9,
                "uniacid": 1,
                "name": "测试门店2",
                "province_id": "110000",
                "city_id": "110100",
                "area_id": "110101",
                "province_name": "北京市",
                "city_name": "北京市",
                "area_name": "东城区",
                "address_detail": "嘉禾望岗",
                "longitude": "113.295601",
                "latitude": "23.243774",
                "tel": "075722285750",
                "midground_brand_id": "1",
                "open_time": [
                    {
                        "weeks": [
                            "周日",
                            "周一",
                            "周二"
                        ],
                        "times": []
                    }
                ],
                "facilities_and_service": "访问访问",
                "business_license": "https://supply.yunzmall.com/uploads/file/38f84c9b9b6abc7b6c3b976770ce8098_20241021114253.jpeg",
                "created_at": "2024-10-21 17:42:23",
                "updated_at": "2024-10-21 17:42:23",
                "store_id": 2,
                "distance": 5070
            },
            {
                "id": 8,
                "uniacid": 1,
                "name": "测试门店1",
                "province_id": "110000",
                "city_id": "110100",
                "area_id": "110101",
                "province_name": "北京市",
                "city_name": "北京市",
                "area_name": "东城区",
                "address_detail": "夏良",
                "longitude": "113.331341",
                "latitude": "23.281882",
                "tel": "075722285750",
                "midground_brand_id": "1",
                "open_time": [
                    {
                        "weeks": [
                            "周日",
                            "周一",
                            "周二"
                        ],
                        "times": []
                    }
                ],
                "facilities_and_service": "访问访问",
                "business_license": "https://supply.yunzmall.com/uploads/file/38f84c9b9b6abc7b6c3b976770ce8098_20241021114253.jpeg",
                "created_at": "2024-10-21 17:42:23",
                "updated_at": "2024-10-21 17:42:23",
                "store_id": 1,
                "distance": 10617
            },
            {
                "id": 11,
                "uniacid": 1,
                "name": "测试门店1",
                "province_id": "110000",
                "city_id": "110100",
                "area_id": "110101",
                "province_name": "北京市",
                "city_name": "北京市",
                "area_name": "东城区",
                "address_detail": "付费",
                "longitude": "116.618209",
                "latitude": "39.99679",
                "tel": "075722285750",
                "midground_brand_id": "1",
                "open_time": [
                    {
                        "weeks": [
                            "周日",
                            "周一",
                            "周二"
                        ],
                        "times": [
                            {
                                "start_time": "1729564053000",
                                "end_time": "1729596454000"
                            },
                            {
                                "start_time": "1729538858000",
                                "end_time": "1729546060000"
                            }
                        ]
                    }
                ],
                "facilities_and_service": "访问访问",
                "business_license": "https://supply.yunzmall.com/uploads/file/38f84c9b9b6abc7b6c3b976770ce8098_20241021114253.jpeg",
                "created_at": "2024-10-22 10:28:08",
                "updated_at": "2024-10-22 10:28:08",
                "store_id": 4,
                "distance": 1892353
            }
        ],
        "coupon_amount": "",
        "has_one_goods": {
            "id": 39,
            "uniacid": 1,
            "brand_id": 5,
            "type": 1,
            "status": 0,
            "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:35:09",
            "deleted_at": null,
            "updated_at": "2024-10-21 17:35:09",
            "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": "下架"
        }
    }
}

返回参数说明:

参数名 类型 说明
sale_start_at int 销售开始时间
sale_end_at int 销售结束时间
has_one_goods.discount string xx折
has_one_goods.thumb string 商品图片
has_one_goods.title string 商品名称
has_one_goods.id string 商品id
has_one_goods.show_sales string 销量
has_one_goods.price string 价格
has_one_goods.market_price string 市场价
has_one_goods.belongs_to_categorys.has_one_category.name string 第三级分类
store[0][distance] string 最近门店距离
store[0][longitude] string 精度
store[0][latitude] string 维度
store[0][province_name] string 省名
store[0][city_name] string 市名
store[0][area_name] string 区名
store[0][address_detail] string 详细地址
store[0][tel] string 电话号码
purchase.need_mobile string 是否需要电话号码 1 需要 2不需要
purchase.expire.type int 顾客可消费日期类型 1 指定自购买日起x天数 2指定过期日期
purchase.expire.days int 当purchase.expire.type为1时有用 天数
purchase.expire.at string 当purchase.expire.type为2时有用 指定过期日期 例2024-11-30
purchase.unavailable_date.weekly.selected int 顾客不可消费设置 每周不可用设置启用 1 启用 2 不启用
purchase.unavailable_date.weekly.weekends array 顾客不可消费设置 每周不可用设置 不可用的星期x
purchase.unavailable_date.holidays.selected int 顾客不可消费设置 节假日不可用设置启用 1 启用 2 不启用
purchase.unavailable_date.specified.selected int 顾客不可消费设置 指定日期不可用设置启用 1 启用 2 不启用
purchase.unavailable_date.specified.dates array 顾客不可消费设置 不可用时间段数组
purchase.consume.type int 客户每日消费时间段 1 全天可用 2 指定时间段内可用
purchase.consume.times array 客户每日指定消费时间段数组
purchase.buy_limit_rule.selected int 购买限制开关 0 关 1开
purchase.booking_rule.need_booking int 是否需要预约 0 关 1开
purchase.booking_rule.advance_unit int 预约单位 1 天 2小时 3分钟
purchase.booking_rule.advance_num int 预约数量 例:advance_unit为1,advance_num为4 就是 提前4天预约
purchase.with_discount int 使用规则 2 不与店内优惠同享 1 可与店内优惠同享
purchase.usage_sheet_rule.unlimited int 使用张数限制 1不限张数 2 限制张数
purchase.usage_sheet_rule.num int 限制张数
purchase.usage_people_rule.unlimited int 使用人数限制 1 不限人数 2 限制人数
purchase.usage_people_rule.num int 限制人数
purchase.usage_describes[].title string 使用说明标题
purchase.usage_describes[].contents array 使用说明内容数组
purchase.usage_describes[].contents[].info string 使用说明具体内容