简要描述:

请求域名:

  • http://xx.com

请求URL:

route=plugin.coupon-store.frontend.store.getStoreListByGoods

参数:

参数名 是否必须 类型 说明
goods_id int 商品ID
longitude float 经度
latitude float 纬度
store_name string 商户名称
paginate int 每页多少条数据,默认15

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "store_mobile": "88888",
                "longitude": "113.177684",
                "latitude": "23.178730",
                "id": 2,
                "store_name": "商户33333",
                "address": "无法服务费方法",
                "province": "广东省",
                "city": "广州市",
                "district": "白云区",
                "street": "三元里街道",
                "store_logo_url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5d5feaadb110164c2aa168ec76c677a1.jpg"
            }
        ],
        "first_page_url": "http://zouye.yunzmall.com/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 6,
        "last_page_url": "http://zouye.yunzmall.com/addons/yun_shop/api.php?page=6",
        "next_page_url": "http://zouye.yunzmall.com/addons/yun_shop/api.php?page=2",
        "path": "http://zouye.yunzmall.com/addons/yun_shop/api.php",
        "per_page": 1,
        "prev_page_url": null,
        "to": 1,
        "total": 6
    }
}

错误时返回:

  {
  }

返回参数说明:

参数名 类型 说明
名称 类型 说明
id int 商户ID
store_mobile string 商户电话
store_name string 商户名称
longitude float 经度
latitude float 纬度
province string
city string
district string
street string 街道
store_logo_url string 商户logo