简要描述:
- 酒店信息接口,
请求URL:
GET/plugin.hotel.frontend.hotel.get-hotel-info.get-info-by-hotel-id
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
hotel_id | 是 | int | 酒店id |
lng | 是 | float | 经度 |
lat | 是 | float | 纬度 |
city_name | 是 | string | 城市名称 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"id": 1,
"hotel_name": "i like you",
"banner_thumb": "http://www.web7.com/attachment/images/5/2019/01/c9as6APsAulSS5sS9yEUjaPNV0Z9lN.jpg",
"star_rated": 5,
"province_id": 440000,
"city_id": 440100,
"district_id": 440104,
"street_id": 440104004,
"address": "新市",
"mobile": "你的一切",
"hotel_introduce": "我想要",
"entrance_time": "06:35",
"departure_time": "08:45",
"instructions": "后来的我们",
"longitude": "113.331306",
"latitude": "23.294514",
"average_score": "9.0",
"distance": 16.4,
"unit": "km",
"information": "<p><img src=\"http://www.web7.com/attachment/images/5/2019/01/cSHLlc1MnrhrYlA8usl8asnzMs1nni.jpg\" alt=\"f05d8868dddc8b4b!400x400_big.jpg\" width=\"100%\"/></p>",
"full_address": "广东省 广州市 越秀区 新市",
"has_one_facilities": {
"id": 1,
"hotel_id": 1,
"network": [
"123",
"123,123"
],
"is_network": 0,
"parking": [
"123"
],
"is_parking": 0,
"traffic": [
"123"
],
"is_traffic": 0,
"recreation": [
"123"
],
"is_recreation": 0,
"reception": [
"123"
],
"is_reception": 0,
"restaurant": [
"123"
],
"is_restaurant": 0,
"business": [
"123"
],
"is_business": 0,
"currency": [
"123"
],
"is_currency": 0,
"other": [],
"is_other": 0
},
"has_one_details": {
"id": 1,
"hotel_id": 1,
"information": "<p><img src=\"http://www.web7.com/attachment/images/5/2019/01/cSHLlc1MnrhrYlA8usl8asnzMs1nni.jpg\" alt=\"f05d8868dddc8b4b!400x400_big.jpg\" width=\"100%\"/></p>"
}
}
}
错误时返回:
{
"result": 0,
"msg": "参数错误",
"data": {
"code": 0
}
}
or
{
"result": 0,
"msg": "未找到酒店信息",
"data": {
"code": 0
}
}
or
{
"result": 0,
"msg": "您已进入黑名单",
"data": {
"code": 0
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 酒店id |
hote_name | string | 酒店名称 |
banner_thumb | string | 酒店banner |
average_score | string | 评分 |
distance | float | 距离 |
unit | string | 距离单位m/km |
star_rated | int | 酒店星级(0:未评星, 2:二星及以下(经济), 3:三星(舒适), 4:四星(高档), 5五星(豪华) |
province_id | int | 省级id |
city_id | int | 市级id |
district_id | int | 区级id |
street_id | int | 镇级id |
address | string | 详细地址 |
mobile | number | 酒店电话 |
hotel_introduce | string | 酒店简介 |
entrance_time | number | 入住时间 |
departure_time | number | 离店时间 |
instructions | string | 入住须知 |
network | array | 网络设施(从以下开始包括此行就是设施服务里面的服务) |
is_network | tinyint | 判断是否开启网络设施(0:关闭,1:开启) |
parking | array | 停车场 |
is_parking | tinyint | 判断是否开启停车场 |
traffic | array | 交通服务 |
is_traffic | tinyint | 判断是否开启交通服务 |
recreation | array | 休闲娱乐 |
is_recreation | tinyint | 判断是否开启休闲娱乐 |
reception | array | 前台服务 |
is_reception | tinyint | 判断是否开启前台服务 |
restaurant | array | 餐饮服务 |
is_restaurant | tinyint | 判断是否开启餐饮服务 |
business | array | 商务服务 |
is_business | tinyint | 判断是否开启商务服务 |
currency | array | 通用设施 |
is_currency | tinyint | 判断是否开启通用设施 |
other | array | 其他服务 |
is_other | tinyint | 判断是否开启其他服务 |
information | string | 酒店详情 |
备注:
- 更多返回错误代码请看首页的错误代码描述