简要描述:

  • 蛋糕叔叔-获取自提门店

请求URL:

GET/route=plugin.yz-supply-cake.frontend.index.index.getRule&city=广州&goods_id=5042
参数名 类型 说明 是否必须
city string 城市名称 是 如果是全国或者没有可以传收货地址中的城市
goods_id int 商品id
lng
lat

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "code": 200,
        "msg": "success",
        "data": {
            "description": "如果要更改时间请提前一天联系客服更改;距离门店7公里内免费配送,详情请咨询客服。",
            "ship_area_type": "",
            "ship_rule": "{\"non_default\":{\"7\":{\"distance\":\"7\",\"amount\":\"0\",\"clearing_amount\":\"0\",\"free\":\"120\"}},\"default_amount\":\"-1\",\"default_clearing_amount\":\"\",\"default_free_amount\":\"-1\"}",
            "shop": [
                {
                    "id": "1117002",
                    "name": "江燕店",
                    "lng": "113.285008",
                    "lat": "23.085902",
                    "address": "广州市海珠区江燕路245号,锦江之星1楼,江燕公园公交站",
                    "phone": "400-110-3737",
                    "distance": 12392.578087043556
                },
                {
                    "id": "1117004",
                    "name": "芳村百花路店",
                    "lng": "113.236395",
                    "lat": "23.101435",
                    "address": "广州市荔湾区百花路8号(花地人家商业中心)109-110号",
                    "phone": "400-110-3737",
                    "distance": 12387.381970392467
                },
                {
                    "id": "1117005",
                    "name": "滨江东路店",
                    "lng": "113.300866",
                    "lat": "23.106661",
                    "address": "广州市海珠区区滨江东路1028号(民生银行旁边)",
                    "phone": "400-110-3737",
                    "distance": 12393.794402229201
                }
            ]
        }
    }
}
{
    "result": 1,
    "msg": "",
    "data": {
        "code": 209,
        "msg": "未找到该商品配送范围",
        "data": {
            "description": "",
            "ship_area_type": "",
            "ship_rule": "",
            "shop": null
        }
    }
}
参数名 类型 说明
shop array 门店信息
参数名 类型 说明
distance 距离 单位公里,这个不是官方返回的

https://www.showdoc.com.cn/dgssapi/7276576394415269 官方文档