简要描述:

请求域名:

  • http://xx.com

请求URL:

route=plugin.coupon-store.frontend.search.searchStore

参数:

参数名 是否必须 类型 说明
store_name string 商户名

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 5,
                "address": "无法服务费方法",
                "store_name": "商户88522",
                "store_logo": "newimage/1158646471c09da5506594e7ba5c2e9c.jpg",
                "average_price": "11111.00",
                "city_id": 120100,
                "street_id": 120102002,
                "district_id": 120102,
                "first_category_id": 13,
                "second_category_id": 14,
                "third_category_id": 15,
                "longitude": "113.177684",
                "latitude": "23.178730",
                "distance": 1034,
                "expire_time_str": "1970-01-01 08:00:00",
                "expire_status": 1,
                "source_name": "",
                "province": "",
                "city": "天津市",
                "district": "河东区",
                "street": "大直沽街道",
                "agreement_download_url": "",
                "first_category": "分类2",
                "second_category": "分类2-1",
                "third_category": "分类2-1-1",
                "store_logo_url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/1158646471c09da5506594e7ba5c2e9c.jpg",
                "store_banner_url": "",
                "customer_code_url": "",
                "business_pics_url": "",
                "identity_front_image_url": "",
                "identity_back_image_url": "",
                "another_pics_url": []
            }
        ],
        "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": 1,
        "total": 1
    }
}

错误时返回:

  {
  }

返回参数说明:

参数名 类型 说明
名称 类型 说明
data.data[distance] int 距离,单位米
data.data[store_name] string 商户名
data.data[average_price] float 人均价
data.data[store_logo_url] string 商户logo
data.data[city] string 城市
data.data[district] string
data.data[street] string 街道
data.data[address] string 地址
data.data[first_category] string 一级分类
data.data[second_category] string 二级分类
data.data[third_category] string 三级分类