简要描述:
- 会员租赁购物车
请求域名:
- http://xx.com
请求URL:
GET/获取购物车列表:oute=member.member-cart.index
【测试,注意更换 i 值】&route=plugin.lease-toy.api.member-cart.index
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
memberId | 是 | int | 会员ID |
unlaced | 可选 | int | 公众号ID |
返回示例:
正确时返回:
{
"result":1,
"msg":"\u83b7\u53d6\u5217\u8868\u6210\u529f",
"data":[{
"id":2,
"goods_id":109,
"total":1,
"option_id":0,
"created_at":"2018-03-05 11:42:34",
"updated_at":"2018-03-05 11:42:34",
"deleted_at":null,
"has_one_lease_goods":{
"id":5,
"goods_id":109,
"immed_goods_id":21,
"is_lease":1,
"is_rights":1,
"goods_deposit":"212.00",
"created_at":"2018-03-05 11:41:27",
"deleted_at":null
},
"goods":{
"id":109,
"thumb":"",
"price":"100.00",
"market_price":"218.00",
"title":"",
"deleted_at":null,
"vip_price":100
},
"goods_option":null,
"option_str":""
}]
}
错误时返回:
{
"result": 0,
"msg": "获取失败"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int(10) | |
member_id | int(10) | 会员ID |
uniacid | int(10) | 所属公众号ID |
goods_id | int(10) | 商品ID |
total | int(11) | 加入购物车数量 |
option_id | int(10) | 商品规格ID |
created_at | varchar(10) | 创建时间 |
has_one_lease_goods 参数说明
参数名 | 类型 | 说明 |
---|---|---|
goods_deposit | int | 租金 |
is_rights | int | 支持权益 1:支持 0:否 |
备注:
- 更多返回错误代码请看首页的错误代码描述