简要描述:

请求URL:

GET/plugin.store-community.frontend.community.getInfo

参数:

参数名 是否必须 类型 说明
community_id true int 社区id
kwd false str 搜索门店关键字
lng true str 经度
lat true str 纬度

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "info": {
            "id": 2,
            "slideshow": [
                "newimage/6c3ebd43e5bf23543930dcbbe9e7629f.jpeg",
                "images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
                "images/5/2020/08/LaGAc8GZ77pz4hHckhlah2h8CIoHlH.png"
            ],
            "explain": "<p>dfdfh</p>",
            "province_name": "黑龙江省",
            "city_name": "哈尔滨市",
            "district_name": "道外区",
            "street_name": "滨江街道",
            "address": "sgsdg",
            "address_name": "黑龙江省 - 哈尔滨市 - 道外区 - 滨江街道",
            "logo_url": "",
            "slideshow_url": [
                "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/newimage/6c3ebd43e5bf23543930dcbbe9e7629f.jpeg",
                "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
                "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/LaGAc8GZ77pz4hHckhlah2h8CIoHlH.png"
            ]
        },
        "store_list": {
            "total": 1,
            "per_page": 15,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 1,
            "data": [
                {
                    "id": 2,
                    "thumb": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/newimage/8da397309873b7d6273e7915ef473bac.jpeg",
                    "store_name": "mdzz",
                    "category_id": 4,
                    "mobile": "123123123",
                    "dispatch_type": [
                        1
                    ],
                    "longitude": "116.413384",
                    "latitude": "39.910925",
                    "cashier_id": 786,
                    "specify_show": 0,
                    "operating_state": 0,
                    "distance": 103,
                    "store_point": {
                        "point_switch": 0,
                        "point": 0,
                        "point_deduct_switch": 0,
                        "max_point_deduct": 0
                    },
                    "store_love": {
                        "deduction": null,
                        "deduction_proportion": "爱心值0%",
                        "award": null,
                        "award_proportion": "爱心值0%"
                    },
                    "address": {
                        "city": "天津市",
                        "detailed_address": "测试"
                    },
                    "dispatchs": [
                        "快递"
                    ],
                    "unit": "m",
                    "recommend_goods": [],
                    "store_full_reduction": [],
                    "store_full_package": "",
                    "full_address": " Array",
                    "dispatch": "快递、",
                    "average_score": 5,
                    "order_total": 0,
                    "validity_status_name": "入驻中",
                    "has_one_category": {
                        "id": 4,
                        "name": "测试",
                        "is_open": 1,
                        "open_name": "开启"
                    },
                    "has_many_coupon": []
                }
            ]
        }
    }
}

错误时返回:

{
    "result": 0,
    "msg": "社区id不能为空",
    "data": []
}
{
    "result": 0,
    "msg": "未找到社区",
    "data": []
}
{
    "result": 0,
    "msg": "未传递经纬度",
    "data": []
}

返回参数说明:

参数名 类型 说明
info arr 社区信息
info->id str 社区名称
info->slideshow_url arr 社区轮播
info->explain str 社区介绍
info->address_name str 社区拼接地址,也可以自己拼接
info->province_name str 省名称
info->city_name str 市名称
info->district_name str 区名称
info->street_name str 街道名称
info->address str 详细地址
store_list arr 门店列表,参考门店接口plugin.store-cashier.frontend.store.get-store-list-to-page,接口文档没找到