简要描述:

请求域名:

  • http://xx.com

请求URL:

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

参数:

参数名 是否必须 类型 说明
search obj 查询对象
search.limit_1km int 限制1km内 1 开启 0关闭
search.search_type int 1距离 2销量 3价格
search.search_direct int 方向 asc 升序 desc 降序
search.keyword string 搜索关键词
search.longitude string 经度
search.latitude string 纬度
search.first_cate_id int 一级分类id
search.second_cate_id int 二级分类id
search.third_cate_id int 三级分类id
search.city_id int 城市id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "show_sales": 4,
                "price": "11.00",
                "title": "哥",
                "thumb": "images/1/2024/09/25e5f75f03d437acaec9458866bbd9f0.png",
                "market_price": "0.00",
                "longitude": "116.617324",
                "latitude": "39.99888",
                "sale_start_at": 1727884800,
                "sale_end_at": 1732723199,
                "distance": 1892508,
                "discount": "5折",
                "coupon": "可领5元优惠券"
            },
            {
                "id": 39,
                "show_sales": 0,
                "price": "1.62",
                "title": "葱油拌面",
                "thumb": "https://supply.yunzmall.com/uploads/file/ad4540a024b7cc6f1d32025c96fd7198_20241017152911.png",
                "market_price": "0.63",
                "longitude": "113.331341",
                "latitude": "23.281882",
                "sale_start_at": 1727884800,
                "sale_end_at": 1732723199,
                "distance": 1230,
                "discount": "5折",
                "coupon": "可领5元优惠券"
            }
        ],
        "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": "« 上一页",
                "active": false
            },
            {
                "url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "下一页 »",
                "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": 2,
        "total": 2
    }
}

返回参数说明:

参数名 类型 说明
名称 类型 说明
id int 商品id
show_sales int 销量
price int 价格
market_price int 市场价
thumb string 图片
distance string 最近门店的距离
sale_start_at string 销售开始时间
sale_end_at string 销售结束时间
discount string xx折
coupon string 可领xx券