简要描述:

请求域名:

  • http://xx.com

请求URL:

route=plugin.coupon-store.frontend.goods.index

参数:

参数名 是否必须 类型 说明
longitude float 经度
latitude float 纬度
order_by string distance距离 visit_count人气 start_time新品,默认距离
search[is_recommand] int 是否推荐商品 1是 0不筛选
search[province_id] int 省ID
search[city_id] int 市ID
search[district_id] int 区ID
search[street_id] int 街ID
search[is_free] int 是否霸王餐 1是 0不筛选
search[is_group] int 是否拼团商品 1是 0不筛选
search[is_new] int 是否新品 1是 0不筛选
search[category_ids] arr 装修接口返回的分类ID,一维数组
search[category_id] int 客户手动选择的分类ID,整数

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "longitude": "113.177684",
                "latitude": "23.178730",
                "goods_id": 759,
                "store_id": 6,
                "offline_price": "99.00",
                "offline_cost_price": "199.00",
                "start_time": 1654012800,
                "end_time": 1659196800,
                "is_free": 1,
                "is_self": 1,
                "distance": 12380028,
                "has_many_goods_store_count": 4,
                "reward_point": "9.90",
                "reward_love": "",
                "title": "消费券商品20220624",
                "show_sales": 6,
                "thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5d5feaadb110164c2aa168ec76c677a1.jpg",
                "price": "99.00",
                "is_new": 0,
                "is_end": 0,
                "is_stock_warn": 0,
                "is_many_store": 1,
                "store_name": "商户2111",
                "stock": 0,
                "category_name": "分类1-1-1"
            },
            {
                "longitude": "113.177684",
                "latitude": "23.178730",
                "goods_id": 763,
                "store_id": 6,
                "offline_price": "99.00",
                "offline_cost_price": "199.00",
                "start_time": 1622476800,
                "end_time": 1690732800,
                "is_free": 0,
                "is_self": 0,
                "distance": 12380028,
                "has_many_goods_store_count": 4,
                "reward_point": "9.90",
                "reward_love": "10%",
                "title": "消费券商品20220623",
                "show_sales": 13,
                "thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5d5feaadb110164c2aa168ec76c677a1.jpg",
                "price": "99.00",
                "is_new": 0,
                "is_end": 0,
                "is_stock_warn": 0,
                "is_many_store": 1,
                "store_name": "商户2111",
                "stock": 196,
                "category_name": "分类1-1-1"
            }
        ],
        "first_page_url": "http://zouye.yunzmall.com/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://zouye.yunzmall.com/addons/yun_shop/api.php?page=1",
        "next_page_url": null,
        "path": "http://zouye.yunzmall.com/addons/yun_shop/api.php",
        "per_page": 15,
        "prev_page_url": null,
        "to": 2,
        "total": 2
    }
}

错误时返回:

  {
  }

返回参数说明:

参数名 类型 说明
名称 类型 说明
longitude float 经度
latitude float 纬度
goods_id int 商品ID
store_id int 商户ID
offline_price float 到店付价格
offline_cost_price float 到店付原价
start_time int 销售开始时间戳
end_time int 销售结束时间戳
is_free int 是否霸王餐
is_self int 是否自营
distance int 距离,单位米
reward_point string 奖励积分,默认空字符串
reward_love string 奖励爱心值,默认空字符串
title string 商品标题
show_sales int 销量
thumb string 图片
price float 商品价格
is_new int 是否新品
is_end int 是否即将结束
is_comming_soon int 是否即将开售
is_stock_warn int 是否即将售罄
is_many_store int 是否多门店可用
store_name string 商户名
stock int 库存
category_name string 分类名