|
|
## 1、根据多个skn查询的接口
|
|
|
|
|
|
### method=h5.product.batch
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|brand|string|是|649|null|品牌id|
|
|
|
|order|string|是|s_n_desc|null|排序规则|
|
|
|
|limit|int|是|20|20|每页数据大小|
|
|
|
|page|int|是|1|1|当前页|
|
|
|
|productSkn|string|否|5002700,5001700|null|商品skn,多个skn以逗号分隔|
|
|
|
|
|
|
#### 接口返回
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"page": 1,
|
|
|
"page_total": 14,
|
|
|
"product_list": [
|
|
|
{
|
|
|
"brand_domain": "macropus",
|
|
|
"brand_id": 350,
|
|
|
"brand_name": "MACROPUS",
|
|
|
"cn_alphabet": "MACROPUSShuangJianBaoMCPA601BK807",
|
|
|
"default_images": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"edit_time": 1457575980,
|
|
|
"gender": "3",
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"color_code": "333333",
|
|
|
"color_id": "2",
|
|
|
"color_name": "黑色",
|
|
|
"color_value": "",
|
|
|
"cover_1": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"cover_2": "",
|
|
|
"goods_id": "404967",
|
|
|
"images_url": "http://img10.static.yhbimg.com/goodsimg/2016/01/04/11/018c2c3e31c131f773cd371bdeda2b8a8a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"is_default": "Y",
|
|
|
"product_skc": "306738",
|
|
|
"status": "1"
|
|
|
},
|
|
|
{
|
|
|
"color_code": "0000fe",
|
|
|
"color_id": "7",
|
|
|
"color_name": "蓝色",
|
|
|
"color_value": "",
|
|
|
"cover_1": "",
|
|
|
"cover_2": "http://img13.static.yhbimg.com/goodsimg/2016/01/21/07/021eeadc25e5956078a62766de8c613902.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_id": "404969",
|
|
|
"images_url": "http://img12.static.yhbimg.com/goodsimg/2015/12/31/10/0242349adc8ca268b3945553c1e462440a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"is_default": "N",
|
|
|
"product_skc": "306739",
|
|
|
"status": "1"
|
|
|
},
|
|
|
{
|
|
|
"color_code": "b9b7af",
|
|
|
"color_id": "3",
|
|
|
"color_name": "灰色",
|
|
|
"color_value": "",
|
|
|
"cover_1": "",
|
|
|
"cover_2": "http://img11.static.yhbimg.com/goodsimg/2016/01/21/07/017ee07092f40285d9cca35711fca60947.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_id": "404971",
|
|
|
"images_url": "http://img11.static.yhbimg.com/goodsimg/2016/01/04/06/015f740b62058711b47dc5a620c7a0ab97.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"is_default": "N",
|
|
|
"product_skc": "306740",
|
|
|
"status": "1"
|
|
|
},
|
|
|
{
|
|
|
"color_code": "ee0000",
|
|
|
"color_id": "11",
|
|
|
"color_name": "红色",
|
|
|
"color_value": "",
|
|
|
"cover_1": "http://img12.static.yhbimg.com/goodsimg/2016/01/21/07/022b6e53cfc1ecb42d62cc1a44a1697a7a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"cover_2": "",
|
|
|
"goods_id": "404973",
|
|
|
"images_url": "http://img13.static.yhbimg.com/goodsimg/2016/01/04/05/02820d9667af1de64df0dd4a3ed3489abd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"is_default": "N",
|
|
|
"product_skc": "306741",
|
|
|
"status": "1"
|
|
|
}
|
|
|
],
|
|
|
"is_advance": "N",
|
|
|
"is_discount": "N",
|
|
|
"is_limited": "N",
|
|
|
"is_new": "Y",
|
|
|
"is_outlets": 2,
|
|
|
"is_promotion": 103,
|
|
|
"is_soon_sold_out": "N",
|
|
|
"is_special": "N",
|
|
|
"market_price": 369,
|
|
|
"max_sort_id": 7,
|
|
|
"middle_sort_id": 49,
|
|
|
"product_id": 314499,
|
|
|
"product_name": "MACROPUS 时尚军装系列 双肩包(男女通用)",
|
|
|
"product_skn": 51174855,
|
|
|
"sales_num": 0,
|
|
|
"sales_phrase": "",
|
|
|
"sales_price": 369,
|
|
|
"shelve_time": 1457575980,
|
|
|
"small_sort_id": 152,
|
|
|
"status": 1,
|
|
|
"stock_number": 1073,
|
|
|
"storage_num": 1073,
|
|
|
"tags": [
|
|
|
"is_new"
|
|
|
],
|
|
|
"vip1_price": 350.55,
|
|
|
"vip2_price": 332.1,
|
|
|
"vip3_price": 324.72,
|
|
|
"vip_discount_type": 4,
|
|
|
"vip_price": 295
|
|
|
}
|
|
|
],
|
|
|
"total": 26
|
|
|
},
|
|
|
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
|
|
|
"message": "Search List."
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 2、根据品牌查询的接口
|
|
|
|
|
|
### (method=app.search.brand)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|yh_channel|string|是|1|null|频道id|
|
|
|
|brand|string|是|649|null|品牌id|
|
|
|
|shop_id|string|是|649|null|店铺id|
|
|
|
|order|string|是|s_n_desc|null|排序规则|
|
|
|
|limit|int|是|20|20|每页数据大小|
|
|
|
|page|int|是|1|1|当前页|
|
|
|
|gender|string|是|1,3|null|性别,筛选条件|
|
|
|
|color|string|是|2|null|颜色,筛选条件|
|
|
|
|price|string|是|220,339|null|价格,筛选条件|
|
|
|
|size|string|是|109|null|尺码,筛选条件|
|
|
|
|p_d|string|是|0.4,0.699|null|折扣,筛选条件|
|
|
|
|sort|string|是|114,293|null|品类,筛选条件|
|
|
|
|tags_filter|int|是|0|0|标签过滤 1:全球购羊头品牌标签过滤|
|
|
|
|
|
|
注意,通用的头部没有列出,其他条件同原来保持一致,如果不清楚可以参考app的请求报文。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/gateway/?app_version=4.1.0&brand=144&client_secret=091b04ce5de86a8b0e0143ee513f9ed2&client_type=android&color=2
|
|
|
&gender=1%2C3&limit=20&method=app.search.brand&order=s_t_desc&os_version=android4.4.4%3AChe1-CL20&p_d=0.4%2C0.699&page=1&price=220%2C339
|
|
|
&productSize=240x319&screen_size=720x1280&size=109&sort=114%2C293&v=7&yh_channel=1&debug=XYZ
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"brand": {
|
|
|
"brand_banner": "http://img10.static.yhbimg.com/brandBanner/2015/07/20/02/01e3a6dc767d3bcce115a98c46f8e1a5c4.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"brand_domain": "macropus",
|
|
|
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2013/01/14/14/01fe59a9d032ed8a69552209c34948addb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"brand_name": "MACROPUS",
|
|
|
"id": 350
|
|
|
},
|
|
|
"filter": {
|
|
|
"brand": [
|
|
|
{
|
|
|
"brand_alif": "M",
|
|
|
"brand_domain": "macropus",
|
|
|
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2016/02/29/18/01a64543a610586706d5957c06e9821c1d.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"brand_keyword": "",
|
|
|
"brand_name": "MACROPUS",
|
|
|
"brand_name_cn": "",
|
|
|
"brand_name_en": "MACROPUS",
|
|
|
"hot_keyword": "",
|
|
|
"id": 350,
|
|
|
"is_hot": "Y"
|
|
|
}
|
|
|
],
|
|
|
"color": [
|
|
|
{
|
|
|
"color_code": "333333",
|
|
|
"color_id": 2,
|
|
|
"color_name": "黑色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "0000fe",
|
|
|
"color_id": 7,
|
|
|
"color_name": "蓝色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "b9b7af",
|
|
|
"color_id": 3,
|
|
|
"color_name": "灰色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "47ba17",
|
|
|
"color_id": 6,
|
|
|
"color_name": "绿色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "ee0000",
|
|
|
"color_id": 11,
|
|
|
"color_name": "红色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "8b5402",
|
|
|
"color_id": 4,
|
|
|
"color_name": "棕色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "FFFFFF",
|
|
|
"color_id": 1,
|
|
|
"color_name": "白色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "ff5c01",
|
|
|
"color_id": 12,
|
|
|
"color_name": "橙色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "710098",
|
|
|
"color_id": 8,
|
|
|
"color_name": "紫色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "ffeb00",
|
|
|
"color_id": 9,
|
|
|
"color_name": "黄色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "#fffff",
|
|
|
"color_id": 15,
|
|
|
"color_name": "彩色",
|
|
|
"color_value": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png"
|
|
|
},
|
|
|
{
|
|
|
"color_code": "",
|
|
|
"color_id": 13,
|
|
|
"color_name": "银色",
|
|
|
"color_value": "http://static.yohobuy.com/images/color_p2.png"
|
|
|
},
|
|
|
{
|
|
|
"color_code": "FFD83D",
|
|
|
"color_id": 14,
|
|
|
"color_name": "金色",
|
|
|
"color_value": ""
|
|
|
}
|
|
|
],
|
|
|
"discount": {
|
|
|
"0.01,0.399": {
|
|
|
"count": 28,
|
|
|
"name": "1~3"
|
|
|
},
|
|
|
"0.4,0.699": {
|
|
|
"count": 193,
|
|
|
"name": "4~6"
|
|
|
},
|
|
|
"0.7,0.999": {
|
|
|
"count": 7,
|
|
|
"name": "7~9"
|
|
|
}
|
|
|
},
|
|
|
"gender": {
|
|
|
"1,3": "BOYS",
|
|
|
"2,3": "GIRLS"
|
|
|
},
|
|
|
"group_sort": [
|
|
|
{
|
|
|
"category_id": "14",
|
|
|
"category_name": "包类",
|
|
|
"node_count": 0,
|
|
|
"parent_id": "1",
|
|
|
"relation_parameter": {
|
|
|
"sort": "152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,197"
|
|
|
},
|
|
|
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/0155e4ec81db538c58a52f3066e396aac5.jpg?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"sub": [
|
|
|
{
|
|
|
"category_id": "136",
|
|
|
"category_name": "双肩包",
|
|
|
"node_count": 0,
|
|
|
"parent_id": "14",
|
|
|
"relation_parameter": {
|
|
|
"sort": "152"
|
|
|
},
|
|
|
"sort_ico": ""
|
|
|
},
|
|
|
{
|
|
|
"category_id": "142",
|
|
|
"category_name": "手拎包/单肩包",
|
|
|
"node_count": 0,
|
|
|
"parent_id": "14",
|
|
|
"relation_parameter": {
|
|
|
"sort": "195,196,153,197"
|
|
|
},
|
|
|
"sort_ico": ""
|
|
|
},
|
|
|
{
|
|
|
"category_id": "150",
|
|
|
"category_name": "腰包",
|
|
|
"node_count": 0,
|
|
|
"parent_id": "14",
|
|
|
"relation_parameter": {
|
|
|
"sort": "157"
|
|
|
},
|
|
|
"sort_ico": ""
|
|
|
},
|
|
|
{
|
|
|
"category_id": "160",
|
|
|
"category_name": "电脑包",
|
|
|
"node_count": 0,
|
|
|
"parent_id": "14",
|
|
|
"relation_parameter": {
|
|
|
"sort": "156"
|
|
|
},
|
|
|
"sort_ico": ""
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
"priceRange": {
|
|
|
"0,119": "¥0-119",
|
|
|
"120,169": "¥120-169",
|
|
|
"170,269": "¥170-269",
|
|
|
"270,99999": "¥269以上"
|
|
|
},
|
|
|
"size": [
|
|
|
{
|
|
|
"size_id": 199,
|
|
|
"size_name": "F"
|
|
|
},
|
|
|
{
|
|
|
"size_id": 203,
|
|
|
"size_name": "M"
|
|
|
},
|
|
|
{
|
|
|
"size_id": 207,
|
|
|
"size_name": "S"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"page": 1,
|
|
|
"page_total": 14,
|
|
|
"product_list": [
|
|
|
{
|
|
|
"brand_domain": "macropus",
|
|
|
"brand_id": 350,
|
|
|
"brand_name": "MACROPUS",
|
|
|
"cn_alphabet": "MACROPUSShuangJianBaoMCPA601BK807",
|
|
|
"default_images": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"edit_time": 1457575980,
|
|
|
"gender": "3",
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"color_code": "333333",
|
|
|
"color_id": "2",
|
|
|
"color_name": "黑色",
|
|
|
"color_value": "",
|
|
|
"cover_1": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"cover_2": "",
|
|
|
"goods_id": "404967",
|
|
|
"images_url": "http://img10.static.yhbimg.com/goodsimg/2016/01/04/11/018c2c3e31c131f773cd371bdeda2b8a8a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"is_default": "Y",
|
|
|
"product_skc": "306738",
|
|
|
"status": "1"
|
|
|
},
|
|
|
{
|
|
|
"color_code": "0000fe",
|
|
|
"color_id": "7",
|
|
|
"color_name": "蓝色",
|
|
|
"color_value": "",
|
|
|
"cover_1": "",
|
|
|
"cover_2": "http://img13.static.yhbimg.com/goodsimg/2016/01/21/07/021eeadc25e5956078a62766de8c613902.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_id": "404969",
|
|
|
"images_url": "http://img12.static.yhbimg.com/goodsimg/2015/12/31/10/0242349adc8ca268b3945553c1e462440a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"is_default": "N",
|
|
|
"product_skc": "306739",
|
|
|
"status": "1"
|
|
|
},
|
|
|
{
|
|
|
"color_code": "b9b7af",
|
|
|
"color_id": "3",
|
|
|
"color_name": "灰色",
|
|
|
"color_value": "",
|
|
|
"cover_1": "",
|
|
|
"cover_2": "http://img11.static.yhbimg.com/goodsimg/2016/01/21/07/017ee07092f40285d9cca35711fca60947.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_id": "404971",
|
|
|
"images_url": "http://img11.static.yhbimg.com/goodsimg/2016/01/04/06/015f740b62058711b47dc5a620c7a0ab97.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"is_default": "N",
|
|
|
"product_skc": "306740",
|
|
|
"status": "1"
|
|
|
},
|
|
|
{
|
|
|
"color_code": "ee0000",
|
|
|
"color_id": "11",
|
|
|
"color_name": "红色",
|
|
|
"color_value": "",
|
|
|
"cover_1": "http://img12.static.yhbimg.com/goodsimg/2016/01/21/07/022b6e53cfc1ecb42d62cc1a44a1697a7a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"cover_2": "",
|
|
|
"goods_id": "404973",
|
|
|
"images_url": "http://img13.static.yhbimg.com/goodsimg/2016/01/04/05/02820d9667af1de64df0dd4a3ed3489abd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"is_default": "N",
|
|
|
"product_skc": "306741",
|
|
|
"status": "1"
|
|
|
}
|
|
|
],
|
|
|
"is_advance": "N",
|
|
|
"is_discount": "N",
|
|
|
"is_limited": "N",
|
|
|
"is_new": "Y",
|
|
|
"is_outlets": 2,
|
|
|
"is_promotion": 103,
|
|
|
"is_soon_sold_out": "N",
|
|
|
"is_special": "N",
|
|
|
"market_price": 369,
|
|
|
"max_sort_id": 7,
|
|
|
"middle_sort_id": 49,
|
|
|
"product_id": 314499,
|
|
|
"product_name": "MACROPUS 时尚军装系列 双肩包(男女通用)",
|
|
|
"product_skn": 51174855,
|
|
|
"sales_num": 0,
|
|
|
"sales_phrase": "",
|
|
|
"sales_price": 369,
|
|
|
"shelve_time": 1457575980,
|
|
|
"small_sort_id": 152,
|
|
|
"status": 1,
|
|
|
"stock_number": 1073,
|
|
|
"storage_num": 1073,
|
|
|
"tags": [
|
|
|
"is_new"
|
|
|
],
|
|
|
"vip1_price": 350.55,
|
|
|
"vip2_price": 332.1,
|
|
|
"vip3_price": 324.72,
|
|
|
"vip_discount_type": 4,
|
|
|
"vip_price": 295
|
|
|
}
|
|
|
],
|
|
|
"standard": [
|
|
|
{
|
|
|
"standard_id": "723",
|
|
|
"standard_name": "电脑隔层",
|
|
|
"sub": [
|
|
|
{
|
|
|
"standard_id": "3293",
|
|
|
"standard_name": "有"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "3294",
|
|
|
"standard_name": "无"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "18",
|
|
|
"standard_name": "面料材质",
|
|
|
"sub": [
|
|
|
{
|
|
|
"standard_id": "128",
|
|
|
"standard_name": "帆布"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "3080",
|
|
|
"standard_name": "尼龙"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "3092",
|
|
|
"standard_name": "涤纶"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "131",
|
|
|
"standard_name": "呢子"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "134",
|
|
|
"standard_name": "灯芯绒"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "3091",
|
|
|
"standard_name": "太空棉"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "132",
|
|
|
"standard_name": "毛线"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "3279",
|
|
|
"standard_name": "聚酯纤维"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "15",
|
|
|
"standard_name": "款式细节",
|
|
|
"sub": [
|
|
|
{
|
|
|
"standard_id": "104",
|
|
|
"standard_name": "logo图案"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "106",
|
|
|
"standard_name": "多口袋"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "100",
|
|
|
"standard_name": "图案印花"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "107",
|
|
|
"standard_name": "拼色"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "101",
|
|
|
"standard_name": "字母图案"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "103",
|
|
|
"standard_name": "绣标"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "109",
|
|
|
"standard_name": "纽扣装饰"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "108",
|
|
|
"standard_name": "金属装饰"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "111",
|
|
|
"standard_name": "贴布装饰"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "21",
|
|
|
"standard_name": "形状",
|
|
|
"sub": [
|
|
|
{
|
|
|
"standard_id": "150",
|
|
|
"standard_name": "横款"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "149",
|
|
|
"standard_name": "长款"
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "152",
|
|
|
"standard_name": "水桶形"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
"total": 269
|
|
|
},
|
|
|
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
|
|
|
"message": "Search List."
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 3、根据品类查询的接口
|
|
|
|
|
|
### (method=app.search.category,获取品类商品列表)
|
|
|
|
|
|
#### 请求参数
|
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| method | String | 是 | app.search.category| |请求方法|
|
|
|
| type | String | 否 | “new” ||页面的标签字符串 “new” “price” “discount” |
|
|
|
| limit | int | 否 | 10 ||每页展示条数,默认10条|
|
|
|
| sort | String | 否 | "116,117,115,119,124,122,413,258,173,227,125,118,121,123,114,293" ||查询小分类ID,查多个小类以逗号分隔|
|
|
|
| page | int | 否 | 1 ||当前页|
|
|
|
| yh_channel | String | 否 | "1" ||频道|
|
|
|
| order | String | 否 | "s_t_desc" ||排序信息 |
|
|
|
| p_d | String | 否 | "0.7" ||打折区间,以逗号分隔|
|
|
|
| color | String | 否 | "145" ||颜色ID|
|
|
|
| brand | String | 否 | "125" ||品牌ID|
|
|
|
| shop | String | 否 | "155" ||店铺ID|
|
|
|
| price | String | 否 | "300,600" ||价格区间,以逗号分隔|
|
|
|
| size | String | 否 | "16,17" ||尺寸ID,以逗号分隔|
|
|
|
| msort | String | 否 | "95" ||产品大分类ID|
|
|
|
| misort | String | 否 | "918" ||产品中分类ID|
|
|
|
| standard | String[] | 否 | standard=13&standard=25 ||规格|
|
|
|
| categoryId | String | 否 | "5" ||运营二级分类ID|
|
|
|
| subCategoryId | String | 否 | "45" || 运营三级分类ID|
|
|
|
| gender | String | 否 | "1,3" ||性别,以逗号分隔|
|
|
|
| outlets | int | 否 | 1 ||outlets=1 奥莱商品 outlets=2非奥莱商品|
|
|
|
|
|
|
|
|
|
#### 注意:与以前方式兼容,如果筛选奥莱,只需增加outlets=1的请求参数
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"filter": {
|
|
|
"brand": [
|
|
|
{
|
|
|
"brand_alif": "L",
|
|
|
"brand_domain": "lhouse",
|
|
|
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2011/06/27/19/01c1514a8a9d3f9bdf34d70c8ec0610870.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"brand_keyword": "l-house,T恤,休闲裤,包,LPAN,",
|
|
|
"brand_name": "L-HOUSE",
|
|
|
"brand_name_cn": "",
|
|
|
"brand_name_en": "L-HOUSE",
|
|
|
"hot_keyword": "l-house",
|
|
|
"id": 72,
|
|
|
"is_hot": "N"
|
|
|
},
|
|
|
{
|
|
|
"brand_alif": "C",
|
|
|
"brand_domain": "clottee",
|
|
|
"brand_ico": "http://img11.static.yhbimg.com/brandLogo/2015/12/03/15/01de6bf632d371c2d6c5f74c212aa284fb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"brand_keyword": "明星、潮流、设计、细节、凸显个人的风格",
|
|
|
"brand_name": "CLOTtee",
|
|
|
"brand_name_cn": "",
|
|
|
"brand_name_en": "CLOTtee",
|
|
|
"hot_keyword": "CLOT主理人Edison Chen(陈冠希)和Kevin Poon(潘世亨)以“Essential”为题进",
|
|
|
"id": 518,
|
|
|
"is_hot": "Y"
|
|
|
}
|
|
|
],
|
|
|
"color": [
|
|
|
{
|
|
|
"color_code": "FFFFFF",
|
|
|
"color_id": 1,
|
|
|
"color_name": "白色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "333333",
|
|
|
"color_id": 2,
|
|
|
"color_name": "黑色",
|
|
|
"color_value": ""
|
|
|
},
|
|
|
{
|
|
|
"color_code": "0000fe",
|
|
|
"color_id": 7,
|
|
|
"color_name": "蓝色",
|
|
|
"color_value": ""
|
|
|
}
|
|
|
],
|
|
|
"discount": {
|
|
|
"0.01,0.399": {
|
|
|
"count": 1,
|
|
|
"name": "1~3"
|
|
|
}
|
|
|
},
|
|
|
"gender": {
|
|
|
"1,3": "BOYS",
|
|
|
"2,3": "GIRLS"
|
|
|
},
|
|
|
"group_sort": [
|
|
|
{
|
|
|
"category_id": "18",
|
|
|
"category_name": "上衣",
|
|
|
"node_count": 0,
|
|
|
"parent_id": "2",
|
|
|
"relation_parameter": {
|
|
|
"sort": "227,173,125,258,121,123,119,124,118,122,115,117,114,293,116,413"
|
|
|
},
|
|
|
"sort_ico": "http://img12.static.yhbimg.com/taobaocms/2016/04/25/15/021f6d7c1a73dd5823c6758186ef270611.png",
|
|
|
"sub": [
|
|
|
{
|
|
|
"category_id": "29",
|
|
|
"category_name": "防风外套",
|
|
|
"node_count": 0,
|
|
|
"parent_id": "18",
|
|
|
"relation_parameter": {
|
|
|
"sort": "227"
|
|
|
},
|
|
|
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
|
|
|
},
|
|
|
{
|
|
|
"category_id": "45",
|
|
|
"category_name": "T恤",
|
|
|
"node_count": 0,
|
|
|
"parent_id": "5",
|
|
|
"relation_parameter": {
|
|
|
"sort": "114,293"
|
|
|
},
|
|
|
"sort_ico": ""
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"category_id": "8",
|
|
|
"category_name": "裤装",
|
|
|
"node_count": 0,
|
|
|
"parent_id": "1",
|
|
|
"relation_parameter": {
|
|
|
"sort": "131,129,346,133,348,130"
|
|
|
},
|
|
|
"sort_ico": "http://img10.static.yhbimg.com/taobaocms/2016/04/18/14/016bd577221e94e560d4686ec51f94a479.jpg",
|
|
|
"sub": [
|
|
|
{
|
|
|
"category_id": "92",
|
|
|
"category_name": "牛仔裤",
|
|
|
"node_count": 0,
|
|
|
"parent_id": "8",
|
|
|
"relation_parameter": {
|
|
|
"sort": "130,114,293"
|
|
|
},
|
|
|
"sort_ico": ""
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
"priceRange": {
|
|
|
"0,139": "¥0-139",
|
|
|
"140,149": "¥140-149",
|
|
|
"150,99999": "¥149以上"
|
|
|
},
|
|
|
"size": [
|
|
|
{
|
|
|
"size_id": 201,
|
|
|
"size_name": "L"
|
|
|
},
|
|
|
{
|
|
|
"size_id": 203,
|
|
|
"size_name": "M"
|
|
|
},
|
|
|
{
|
|
|
"size_id": 207,
|
|
|
"size_name": "S"
|
|
|
},
|
|
|
{
|
|
|
"size_id": 211,
|
|
|
"size_name": "XL"
|
|
|
},
|
|
|
{
|
|
|
"size_id": 216,
|
|
|
"size_name": "XXL"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"page": 1,
|
|
|
"page_total": 1,
|
|
|
"product_list": [
|
|
|
{
|
|
|
"brand_domain": "clottee",
|
|
|
"brand_id": 518,
|
|
|
"brand_name": "CLOTtee",
|
|
|
"cn_alphabet": "CLA503OJ34ChongFengYi",
|
|
|
"default_images": "http://img11.static.yhbimg.com/goodsimg/2015/09/30/08/01d2be5e9d6a18d8958484fede5af853bd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"edit_time": 1452654408,
|
|
|
"gender": "1",
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"color_code": "333333",
|
|
|
"color_id": "2",
|
|
|
"color_name": "黑色",
|
|
|
"color_value": "",
|
|
|
"cover_1": "",
|
|
|
"cover_2": "",
|
|
|
"goods_id": "314411",
|
|
|
"images_url": "http://img11.static.yhbimg.com/goodsimg/2015/09/30/08/01d2be5e9d6a18d8958484fede5af853bd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"is_default": "N",
|
|
|
"product_skc": "258548",
|
|
|
"status": "1"
|
|
|
}
|
|
|
],
|
|
|
"is_advance": "N",
|
|
|
"is_discount": "Y",
|
|
|
"is_limited": "N",
|
|
|
"is_new": "N",
|
|
|
"is_outlets": 1,
|
|
|
"is_promotion": 101,
|
|
|
"is_soon_sold_out": "N",
|
|
|
"is_special": "N",
|
|
|
"market_price": 699,
|
|
|
"max_sort_id": 1,
|
|
|
"middle_sort_id": 226,
|
|
|
"product_id": 239715,
|
|
|
"product_name": "CLOTtee camouflage Printing Coat Tech Jacket",
|
|
|
"product_skn": 51134695,
|
|
|
"sales_num": 2,
|
|
|
"sales_phrase": "",
|
|
|
"sales_price": 139,
|
|
|
"shelve_time": 1452654408,
|
|
|
"small_sort_id": 227,
|
|
|
"status": 1,
|
|
|
"stock_number": 765,
|
|
|
"storage_num": 765,
|
|
|
"tags": [
|
|
|
"is_discount"
|
|
|
],
|
|
|
"vip1_price": 132.04999999999998,
|
|
|
"vip2_price": 125.10000000000001,
|
|
|
"vip3_price": 122.32000000000001,
|
|
|
"vip_discount_type": 3,
|
|
|
"vip_price": 0
|
|
|
},
|
|
|
{
|
|
|
"brand_domain": "lhouse",
|
|
|
"brand_id": 72,
|
|
|
"brand_name": "L-HOUSE",
|
|
|
"cn_alphabet": "LHOUSEA308XiangJiLPANTXu",
|
|
|
"default_images": "http://img13.static.yhbimg.com/goodsimg/2013/05/09/15/023d3a7e390c20c471978c847600399ba8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"edit_time": 1395997048,
|
|
|
"gender": "1",
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"color_code": "FFFFFF",
|
|
|
"color_id": "1",
|
|
|
"color_name": "白",
|
|
|
"color_value": "",
|
|
|
"cover_1": "",
|
|
|
"cover_2": "",
|
|
|
"goods_id": "59474",
|
|
|
"images_url": "http://img13.static.yhbimg.com/goodsimg/2013/05/09/15/023d3a7e390c20c471978c847600399ba8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"is_default": "Y",
|
|
|
"product_skc": "96567",
|
|
|
"status": "1"
|
|
|
},
|
|
|
{
|
|
|
"color_code": "0000fe",
|
|
|
"color_id": "7",
|
|
|
"color_name": "蓝",
|
|
|
"color_value": "",
|
|
|
"cover_1": "",
|
|
|
"cover_2": "",
|
|
|
"goods_id": "59475",
|
|
|
"images_url": "http://img10.static.yhbimg.com/goodsimg/2013/05/09/16/0102c226f7faa1274e05cc038dc3c29f9f.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"is_default": "N",
|
|
|
"product_skc": "96568",
|
|
|
"status": "1"
|
|
|
}
|
|
|
],
|
|
|
"is_advance": "N",
|
|
|
"is_discount": "N",
|
|
|
"is_limited": "N",
|
|
|
"is_new": "N",
|
|
|
"is_outlets": 1,
|
|
|
"is_promotion": 0,
|
|
|
"is_soon_sold_out": "Y",
|
|
|
"is_special": "N",
|
|
|
"market_price": 148,
|
|
|
"max_sort_id": 1,
|
|
|
"middle_sort_id": 11,
|
|
|
"product_id": 38518,
|
|
|
"product_name": "L-HOUSE 相机LPAN T恤",
|
|
|
"product_skn": 51009846,
|
|
|
"sales_num": 65,
|
|
|
"sales_price": 148,
|
|
|
"shelve_time": 1395997048,
|
|
|
"small_sort_id": 114,
|
|
|
"status": 1,
|
|
|
"stock_number": 2,
|
|
|
"storage_num": 2,
|
|
|
"tags": [
|
|
|
"is_soon_sold_out"
|
|
|
],
|
|
|
"vip1_price": 140.6,
|
|
|
"vip2_price": 133.20000000000002,
|
|
|
"vip3_price": 130.24,
|
|
|
"vip_discount_type": 3,
|
|
|
"vip_price": 0
|
|
|
}
|
|
|
],
|
|
|
"standard": [
|
|
|
{
|
|
|
"standard_id": "879",
|
|
|
"standard_name": "袖长",
|
|
|
"sub": [
|
|
|
{
|
|
|
"standard_id": "4817",
|
|
|
"standard_name": "长袖"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "878",
|
|
|
"standard_name": "衣长",
|
|
|
"sub": [
|
|
|
{
|
|
|
"standard_id": "4814",
|
|
|
"standard_name": "长款"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "876",
|
|
|
"standard_name": "经典款型",
|
|
|
"sub": [
|
|
|
{
|
|
|
"standard_id": "5080",
|
|
|
"standard_name": "冲锋衣"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "882",
|
|
|
"standard_name": "厚度",
|
|
|
"sub": [
|
|
|
{
|
|
|
"standard_id": "4822",
|
|
|
"standard_name": "中"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"standard_id": "880",
|
|
|
"standard_name": "版型",
|
|
|
"sub": [
|
|
|
{
|
|
|
"standard_id": "4819",
|
|
|
"standard_name": "正常"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
"total": 2
|
|
|
},
|
|
|
"md5": "2b4aa20d350ff2758d2d70687b788173",
|
|
|
"message": "Category Product List."
|
|
|
}
|
|
|
```
|
|
|
|
...
|
...
|
|