简要描述:

  • 酒店列表

请求域名:

  • http://xx.com

请求URL:

POST/&route=plugin.hotel-supply.frontend.home.get-hotel

参数:

参数名 是否必须 类型 说明
hotel_id int 酒店id
lat int 经度
lng int 纬度

返回示例:

正确时返回:

{
    "result": 1, 
    "msg": "hotel", 
    "data": {
        "id": 5, 
        "uniacid": 6, 
        "hotel_id": 401, 
        "name": "易佰上海外高桥自贸区店", 
        "shortname": "易佰上海外高桥自贸区店", 
        "latitude": "31.305244", 
        "longitude": "121.644837", 
        "tel": "4007050580", 
        "logourl": "", 
        "provice": "上海市", 
        "city": "上海市", 
        "area": "浦东新区", 
        "address": "上海市浦东新区赵高公路1576号", 
        "other": "PARKING,WIFI,XICANG,RESHUI,XIYI,JIAOXING,SHANGWANG,XINGLI", 
        "level": 0, 
        "is_manfang": 0, 
        "created_at": "2020-03-11 14:47:27", 
        "fang_jan": [
            {
                "id": 3438, 
                "name": "大床房A(无窗)", 
                "image_1": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/3/d/a/0/thumb_5b4426ac70a3f.jpg", 
                "image_2": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/1/8/0/d/thumb_5b4426bc59c09.jpg", 
                "image_3": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/b/d/7/1/thumb_5b4426c687875.jpg"
            }, 
            {
                "id": 3439, 
                "name": "双床房", 
                "image_1": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/7/9/3/7/thumb_5b44272287875.jpg", 
                "image_2": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/4/f/f/6/thumb_5b44272cc860e.jpg", 
                "image_3": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/c/6/0/b/thumb_5b44273755f00.jpg"
            }, 
            {
                "id": 3440, 
                "name": "特惠商务双床间", 
                "image_1": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/b/a/c/0/thumb_5b4427a8d3d29.jpg", 
                "image_2": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/c/1/b/2/thumb_5b4427bdd3d29.jpg", 
                "image_3": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/a/d/9/d/thumb_5b4427ca0203a.jpg"
            }, 
            {
                "id": 3441, 
                "name": "特惠双床间", 
                "image_1": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/c/5/4/4/thumb_5b44282c1145e.jpg", 
                "image_2": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/2/d/0/f/thumb_5b44283ae6e56.jpg", 
                "image_3": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/9/0/8/a/thumb_5b4428480d755.jpg"
            }, 
            {
                "id": 3442, 
                "name": "大床房B", 
                "image_1": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/8/f/0/1/thumb_5b4447b678451.jpg", 
                "image_2": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/1/4/9/5/thumb_5b4447be8b57e.jpg", 
                "image_3": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/5/6/7/7/thumb_5b4447c8f2571.jpg"
            }, 
            {
                "id": 3443, 
                "name": "商务房", 
                "image_1": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/8/6/3/0/thumb_5b44483ea9dc6.jpg", 
                "image_2": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/1/2/c/3/thumb_5b4448497fe63.jpg", 
                "image_3": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/3/2/a/b/thumb_5b44485546adc.jpg"
            }
        ], 
        "level_name": "其他", 
        "other_name": "停车位,WIFI,XICANG,热水,洗衣,叫醒,上网,行李"
    }
}

错误时返回:

  {
  "result": 0,
  "msg": "未检测到数据!",
  "data": []
}

返回参数说明:

参数名 类型 说明
hotel_id int 酒店id
is_manfang int 是否满房 1:是 0:否
level_name string 酒店类型
other_name string 酒店提供服务
name string 酒店名称
tel string 酒店电话
logourl string 酒店图片
address string 酒店地址
fang_jan array 酒店房间
fang_jan.id int 酒店房间id
fang_jan.name string 酒店房间名称
fang_jan.image_1 string 酒店房间图片
fang_jan.image_2 string 酒店房间图片
fang_jan.image_3 string 酒店房间图片

备注: