简要描述:
-近期热租
请求域名:
- http://xx.com
请求URL:
GET/获取地址:&route=plugin.lease-toy.api.heat-rent.index
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
int | null |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": [
{
"id": 100,
"uniacid": 6,
"brand_id": 0,
"type": 2,
"status": 1,
"display_order": 0,
"title": "测试商品",
"thumb": "图片",
"thumb_url": null,
"sku": "件",
"description": "",
"content": "",
"goods_sn": "",
"product_sn": "",
"market_price": "10.00",
"price": "200.00",
"cost_price": "10.00",
"stock": 4,
"reduce_stock_method": 0,
"show_sales": 96,
"real_sales": 96,
"weight": "0.00",
"has_option": 0,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 1,
"is_comment": 0,
"is_deleted": 0,
"created_at": "2017-11-15 13:41:51",
"deleted_at": null,
"updated_at": "2018-03-30 17:34:21",
"comment_num": 0,
"is_plugin": 0,
"plugin_id": 40,
"virtual_sales": 1000
},
{
"id": 109,
"uniacid": 6,
"brand_id": 0,
"type": 2,
"status": 1,
"display_order": 1,
"title": "康丽纯炫彩气垫BB霜",
"thumb":"图片",
"thumb_url": "",
"sku": "盒",
"description": "",
"content": "",
"goods_sn": "tg000051",
"product_sn": "",
"market_price": "200.00",
"price": "100.00",
"cost_price": "200.00",
"stock": 19966,
"reduce_stock_method": 0,
"show_sales": 34,
"real_sales": 34,
"weight": "100.00",
"has_option": 0,
"is_new": 1,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 1,
"is_comment": 0,
"is_deleted": 0,
"created_at": "2017-11-29 16:58:42",
"deleted_at": null,
"updated_at": "2018-03-30 17:31:50",
"comment_num": 0,
"is_plugin": 0,
"plugin_id": 40,
"virtual_sales": 0
}
]
}
错误时返回:
{
"result": 0,
"msg": "获取失败"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 商品id |
thumb | string | 商品图片 |
price | int | 商品单价 |
title | string | 商品名称 |
备注:
- 更多返回错误代码请看首页的错误代码描述