1.说明
新餐食可从离线模式(hotel.data.rp)、实时模式(hotel.detail) 两种模式下获取,两个接口中的餐食字段有所不同,请注意自己使用的是离线模式还是实时模式,对应的参考相关接口文档的出参字段说明;
以下将分为实时和离线模式说明。
2.实时模式
字段说明参考hotel.detail
2.1动态餐食demo
入住日期为2021-08-12,离店日期为2021-08-15
{ "meals": { "mealCopyWriting": "每间2份早餐或2份午餐或2份晚餐(到店3选2,请自行与酒店协商)", "dayMealTable": [{ "date": "2021-08-12", "dayMealCopyWriting": "2份早餐或2份午餐或2份晚餐(3选2)/间", "useDynamicMeal": true, "dynamicMealDesc": "3种餐食(3选2)", "breakfastShare": 0, "lunchShare": 0, "dinnerShare": 0 }, { "date": "2021-08-13", "dayMealCopyWriting": "2份早餐或2份午餐或2份晚餐(3选2)/间", "useDynamicMeal": true, "dynamicMealDesc": "3种餐食(3选2)", "breakfastShare": 0, "lunchShare": 0, "dinnerShare": 0 }, { "date": "2021-08-14", "dayMealCopyWriting": "2份早餐或2份午餐或2份晚餐(3选2)/间", "useDynamicMeal": true, "dynamicMealDesc": "3种餐食(3选2)", "breakfastShare": 0, "lunchShare": 0, "dinnerShare": 0 }], "hasMealTable": true } }
2.2固定餐食demo
入住日期为2021-08-12,离店日期为2021-08-15
{ "mealCopyWriting": "每间1份早餐", "dayMealTable": [{ "date": "2021-08-12", "dayMealCopyWriting": "无餐食", "useDynamicMeal": false, "breakfastShare": 0, "breakfastDesc": "", "lunchShare": 0, "lunchDesc": "", "dinnerShare": 0, "dinnerDesc": "" }, { "date": "2021-08-13", "dayMealCopyWriting": "1份早餐/间", "useDynamicMeal": false, "breakfastShare": 1, "breakfastDesc": "1份早餐", "lunchShare": 0, "lunchDesc": "", "dinnerShare": 0, "dinnerDesc": "" }, { "date": "2021-08-14", "dayMealCopyWriting": "1份早餐/间", "useDynamicMeal": false, "breakfastShare": 1, "breakfastDesc": "1份早餐", "lunchShare": 0, "lunchDesc": "", "dinnerShare": 0, "dinnerDesc": "" }, { "date": "2021-08-15", "dayMealCopyWriting": "1份早餐/间", "useDynamicMeal": false, "breakfastShare": 1, "breakfastDesc": "1份早餐", "lunchShare": 0, "lunchDesc": "", "dinnerShare": 0, "dinnerDesc": "" }], "hasMealTable": true }
3.离线模式
字段说明参考hotel.data.rp