简要描述:

  • 获取酒店商品列表

请求域名:

  • http://xx.com

请求URL:

POST/plugin.hotel.frontend.hotel.goods.get-goods-to-page

参数:

参数名 是否必须 类型 说明
hotel_id int 门店id
enter_at int 入住时间(Y-m-d)

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "name": "11111",
        "thumb": "images/6/2017/03/w1leEV09AFbG2Yz9l9vXBycyELL7F2.jpg",
        "id": 3,
        "goods": {
            "total": 2,
            "per_page": 20,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 2,
            "data": [
                {
                    "id": 2,
                    "title": "sdfsdfsdfvvvvv",
                    "thumb": "http://n1.cn/attachment/images/6/2017/03/SIHMoubZvIqPnRjGgGNBHJgVN2XJDV.jpg",
                    "price": "12.00",
                    "market_price": "32.00",
                    "": null
                },
                {
                    "id": 60,
                    "title": "11",
                    "thumb": "images/6/2017/03/w1leEV09AFbG2Yz9l9vXBycyELL7F2.jpg",
                    "price": "11.00",
                    "market_price": "22.00",
                    "": null
                }
            ]
        }
    }
}

错误时返回:

  {
    "errcode": 500,
    "errmsg": "invalid appid"
  }

返回参数说明:

参数名 类型 说明
id int 商品ID
title string 商品标题
thumb string 商品图片完整路径
price float 商品金额(元)
market_price float 商品原价(市场价)

备注:

  • 更多返回错误代码请看首页的错误代码描述