简要描述:

返回格式参考order.goods-buy接口,这个接口多返回一个参数,reserve_deduction 预约扣除X积分

请求URL:

GET/plugin.store-reserve.frontend.GoodsBuy.index

参数:

参数名 是否必须 类型 说明
goods_id true int 商品id
option_id true int 规格id
date_id true int 日期id
total true int 数量
store_id true int 门店id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": []
}

错误时返回:

{
    "result": 0,
    "msg": "不是预约商品或没开启预约",
    "data": []
}
{
    "result": 0,
    "msg": "商品不属于该门店",
    "data": []
}

返回参数说明:

参数名 类型 说明
reserve_deduction int 预约扣除积分数量
reserve_date arr 日期数组
reserve_date->date_id int 日期id
date str 2021-05-26 预约日期