...
|
...
|
@@ -13,18 +13,18 @@ |
|
|
### 请求参数
|
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| method | string | 否 | app.Shopping.addBundle | | |
|
|
|
| uid | int | 否 | 5772257 | |用户id |
|
|
|
| shopping_key | int | 否 | c36408a268e9b9418189d9a71967379e | | 购物车key|
|
|
|
| activity_id | int | 否 | | | 活动id |
|
|
|
| product_sku_list | string | 否 | [{"type":"bundle","sku":"1385644","buy_number":"1"},{"type":"bundle","sku":"1385644","buy_number":"1"}] | | 套餐商品 |
|
|
|
| method | string | 是 | app.Shopping.addBundle | | |
|
|
|
| uid | int | 是 | 5772257 | |用户id |
|
|
|
| shopping_key | int | 是 | c36408a268e9b9418189d9a71967379e | | 购物车key|
|
|
|
| activity_id | int | 是 | | | 活动id |
|
|
|
| product_sku_list | string | 是 | [{"type":"bundle","sku":"1385644","buy_number":"1"},{"type":"bundle","sku":"1385644","buy_number":"1"}] | | 套餐商品 |
|
|
|
|
|
|
### product_sku_list参数
|
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| type | string | 否 | bundle| | |
|
|
|
| sku | string | 否 | | | 商品sku|
|
|
|
| buy_number | string | 否 | | | 购买数量 |
|
|
|
| type | string | 是 | bundle| | |
|
|
|
| sku | string | 是 | | | 商品sku|
|
|
|
| buy_number | string | 是 | | | 购买数量 |
|
|
|
|
|
|
### 正常返回结果
|
|
|
```json
|
...
|
...
|
@@ -55,704 +55,13 @@ |
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| method | string | 是 | app.Shopping.queryCart | | |
|
|
|
| uid | int | 否 | 5772257 | | |
|
|
|
| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | |
|
|
|
| uid | int | 是 | 5772257 | | |
|
|
|
| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | |
|
|
|
| sale_channel | string | 否 | 1 | 1 | |
|
|
|
|
|
|
### 正常返回结果
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"advance_cart_data": {//预售购物车
|
|
|
"g_gift_list": [],
|
|
|
"g_price_gift_list": [],
|
|
|
"goods_list": [],
|
|
|
"goods_pool_list": [],
|
|
|
"off_shelves_goods_list": [],
|
|
|
"promotion_info": [
|
|
|
{
|
|
|
"cutdown_amount": 10,
|
|
|
"promotion_id": 0,
|
|
|
"promotion_title": "金卡免运费",
|
|
|
"promotion_type": "VipFreeShippingCost"
|
|
|
}
|
|
|
],
|
|
|
"shopping_cart_data": {
|
|
|
"discount_amount": 0,
|
|
|
"fast_shopping_cost": 0,
|
|
|
"gain_yoho_coin": 0,
|
|
|
"goods_count": 0,
|
|
|
"has_invalid_goods": 0,
|
|
|
"is_multi_package": "N",
|
|
|
"last_order_amount": 0,
|
|
|
"offline_goods_count": 0,
|
|
|
"online_goods_count": 0,
|
|
|
"order_amount": 0,
|
|
|
"package_list": [],
|
|
|
"promotion_formula": "总计¥0.00=商品金额¥0.00",
|
|
|
"promotion_formula_list": [
|
|
|
{
|
|
|
"promotion": "商品金额",
|
|
|
"promotion_amount": "¥0.00"
|
|
|
}
|
|
|
],
|
|
|
"remain_time": 0,
|
|
|
"selected_goods_count": 0,
|
|
|
"shipping_cost": 0,
|
|
|
"str_discount_amount": "¥0.00",
|
|
|
"str_order_amount": "¥0.00"
|
|
|
},
|
|
|
"sold_out_goods_list": [],
|
|
|
"sold_out_goods_pool": []
|
|
|
},
|
|
|
"ordinary_cart_data": {//普通购物车
|
|
|
"g_gift_list": [],//全程赠品促销
|
|
|
"g_price_gift_list": [//全程加价购物购促销
|
|
|
{
|
|
|
"alreadyMatch": true,
|
|
|
"condition_unit": 0,
|
|
|
"condition_value": 0,
|
|
|
"promotion_desc": "已满足【全场加价购】",
|
|
|
"promotion_id": 10190,
|
|
|
"promotion_title": "全场加价购",
|
|
|
"promotion_type": "Needpaygift",
|
|
|
"status": 10
|
|
|
}
|
|
|
],
|
|
|
"goods_list": [],
|
|
|
"goods_pool_list": [
|
|
|
{
|
|
|
"pool_id": 0,
|
|
|
"pool_type": 2,
|
|
|
"promotion_list": [
|
|
|
{
|
|
|
"alreadyMatch": false,
|
|
|
"condition_unit": 2,
|
|
|
"condition_value": -300,
|
|
|
"promotion_desc": "差¥300.00元立享【满300减120-- test5.4.1】",//促销描述
|
|
|
"promotion_id": 10262,
|
|
|
"promotion_title": "D-R-S1:【STAYREAL品牌】满300减120-- test5.4.1",
|
|
|
"promotion_type": "Cashreduce",
|
|
|
"status": 0
|
|
|
}
|
|
|
],
|
|
|
"sub_pool": [
|
|
|
{
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"attribute": "1",
|
|
|
"brand_domain": "STAYREAL",
|
|
|
"brand_id": "197",
|
|
|
"brand_name": "stayreal",
|
|
|
"bundle_activity_id": 0,
|
|
|
"buy_limit": 0,
|
|
|
"buy_number": "1",
|
|
|
"buy_type": 2,
|
|
|
"can_cod_pay": "Y",
|
|
|
"cn_alphabet": "STAYREALGeWenQuXiuShenChangKuKaQiSeHeiBiaoDP15027C5",
|
|
|
"color_id": "4",
|
|
|
"color_name": "棕色",
|
|
|
"delay_notice": "",
|
|
|
"discount_tag": "V",
|
|
|
"expect_arrival_time": "",
|
|
|
"factory_goods_name": "棕色",
|
|
|
"fit_promotions": [],
|
|
|
"get_yoho_coin": "0",
|
|
|
"goods_id": "443199",
|
|
|
"goods_images": "http://img13.static.yhbimg.com/goodsimg/2016/01/07/06/02b9761a89ae37eb1ad440e9e42e5ca619.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_type": "ordinary",
|
|
|
"is_advance": "N",
|
|
|
"is_deposit_advance": "N",
|
|
|
"is_jit": "N",
|
|
|
"is_limited": "N",
|
|
|
"is_outlets": "N",
|
|
|
"is_special": "N",
|
|
|
"last_price": "9.68",
|
|
|
"last_vip_price": 9.68,
|
|
|
"local_buy_number": 0,
|
|
|
"market_price": 499,
|
|
|
"max_sort_id": "3",
|
|
|
"middle_sort_id": "26",
|
|
|
"min_buy_number": 1,
|
|
|
"off_shelves": 0,
|
|
|
"offline_goods_status": 1,
|
|
|
"offline_storage_number": 0,
|
|
|
"offline_storage_status": 1,
|
|
|
"online_storage_number": 0,
|
|
|
"product_id": 339717,
|
|
|
"product_name": "STAYREAL 格纹趣味修身长裤",
|
|
|
"product_skc": "329739",
|
|
|
"product_skn": "51189400",
|
|
|
"product_sku": "1030019",
|
|
|
"promotion_flag": "104",
|
|
|
"promotion_id": "0",
|
|
|
"real_price": 9.68,
|
|
|
"real_vip_price": 9.68,
|
|
|
"sale_price": 0,
|
|
|
"sales_price": 11,
|
|
|
"selected": "N",
|
|
|
"shop_id": 0,
|
|
|
"shopping_cart_goods_id": "65924",
|
|
|
"shopping_cart_id": "118792348",
|
|
|
"shopping_key": "2a7729e3e974cfe476e4472a89c13743",
|
|
|
"size_id": "201",
|
|
|
"size_name": "L",
|
|
|
"small_sort_id": "129",
|
|
|
"storage_number": "3",
|
|
|
"store_id": 0,
|
|
|
"str_subtotal": "¥9.68",
|
|
|
"subtotal": 9.68,
|
|
|
"supplier_id": 0,
|
|
|
"tags": [],
|
|
|
"uid": "8040155",
|
|
|
"vip1_price": "10.45",
|
|
|
"vip2_price": "9.90",
|
|
|
"vip3_price": "9.68",
|
|
|
"vip_discount": 0.88,
|
|
|
"vip_discount_money": 1.32,
|
|
|
"vip_discount_type": "1",
|
|
|
"vip_price": 11,
|
|
|
"wareHouseId": 0,
|
|
|
"yoho_coin_num": "0"
|
|
|
}
|
|
|
],
|
|
|
"pool_id": 0,
|
|
|
"pool_type": 1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"attribute": "1",
|
|
|
"brand_domain": "JNBY",
|
|
|
"brand_id": "1026",
|
|
|
"brand_name": "jnby",
|
|
|
"bundle_activity_id": 0,
|
|
|
"buy_limit": 0,
|
|
|
"buy_number": "2",
|
|
|
"buy_type": 2,
|
|
|
"can_cod_pay": "Y",
|
|
|
"cn_alphabet": "5C62185",
|
|
|
"color_id": "3",
|
|
|
"color_name": "灰色",
|
|
|
"delay_notice": "",
|
|
|
"discount_tag": "",
|
|
|
"expect_arrival_time": "",
|
|
|
"factory_goods_name": "灰色",
|
|
|
"fit_promotions": [
|
|
|
"10190"
|
|
|
],
|
|
|
"get_yoho_coin": "0",
|
|
|
"goods_id": "394171",
|
|
|
"goods_images": "http://img10.static.yhbimg.com/goodsimg/2015/11/10/08/019833a9bf48269f0283e271b03312c571.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_type": "ordinary",
|
|
|
"is_advance": "N",
|
|
|
"is_deposit_advance": "N",
|
|
|
"is_jit": "Y",
|
|
|
"is_limited": "N",
|
|
|
"is_outlets": "N",
|
|
|
"is_special": "N",
|
|
|
"last_price": "228.0",
|
|
|
"last_vip_price": 228,
|
|
|
"local_buy_number": 0,
|
|
|
"market_price": 229,
|
|
|
"max_sort_id": "1",
|
|
|
"middle_sort_id": "22",
|
|
|
"min_buy_number": 1,
|
|
|
"off_shelves": 0,
|
|
|
"offline_goods_status": 1,
|
|
|
"offline_storage_number": 0,
|
|
|
"offline_storage_status": 1,
|
|
|
"online_storage_number": 0,
|
|
|
"product_id": 306601,
|
|
|
"product_name": "JNBY 复古女装外套风衣",
|
|
|
"product_skc": "301244",
|
|
|
"product_skn": "51170925",
|
|
|
"product_sku": "950949",
|
|
|
"promotion_flag": "0",
|
|
|
"promotion_id": "0",
|
|
|
"real_price": 228,
|
|
|
"real_vip_price": 0,
|
|
|
"sale_price": 0,
|
|
|
"sales_price": 228,
|
|
|
"selected": "Y",
|
|
|
"shop_id": 20,
|
|
|
"shopping_cart_goods_id": "65906",
|
|
|
"shopping_cart_id": "118792348",
|
|
|
"shopping_key": "2a7729e3e974cfe476e4472a89c13743",
|
|
|
"size_id": "201",
|
|
|
"size_name": "L",
|
|
|
"small_sort_id": "125",
|
|
|
"storage_number": "2",
|
|
|
"store_id": 0,
|
|
|
"str_subtotal": "¥456.00",
|
|
|
"subtotal": 456,
|
|
|
"supplier_id": 1038,
|
|
|
"tags": [],
|
|
|
"uid": "8040155",
|
|
|
"vip1_price": "0.00",
|
|
|
"vip2_price": "0.00",
|
|
|
"vip3_price": "0.00",
|
|
|
"vip_discount": 1,
|
|
|
"vip_discount_money": 0,
|
|
|
"vip_discount_type": "3",
|
|
|
"vip_price": 0,
|
|
|
"wareHouseId": 0,
|
|
|
"yoho_coin_num": "0"
|
|
|
}
|
|
|
],
|
|
|
"pool_buy_number": "2",
|
|
|
"pool_id": 0,
|
|
|
"pool_title": "jnby",
|
|
|
"pool_type": 1,
|
|
|
"selected": "Y"
|
|
|
},
|
|
|
{
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"attribute": "1",
|
|
|
"brand_domain": "JNBY",
|
|
|
"brand_id": "1026",
|
|
|
"brand_name": "jnby",
|
|
|
"bundle_activity_id": 100672,
|
|
|
"buy_limit": 0,
|
|
|
"buy_number": "1",
|
|
|
"buy_type": 2,
|
|
|
"can_cod_pay": "Y",
|
|
|
"cn_alphabet": "5C62185",
|
|
|
"color_id": "3",
|
|
|
"color_name": "灰色",
|
|
|
"delay_notice": "",
|
|
|
"discount_tag": "",
|
|
|
"expect_arrival_time": "",
|
|
|
"factory_goods_name": "灰色",
|
|
|
"fit_promotions": [],
|
|
|
"get_yoho_coin": "0",
|
|
|
"goods_id": "394171",
|
|
|
"goods_images": "http://img10.static.yhbimg.com/goodsimg/2015/11/10/08/019833a9bf48269f0283e271b03312c571.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_type": "ordinary",
|
|
|
"is_advance": "N",
|
|
|
"is_deposit_advance": "N",
|
|
|
"is_jit": "Y",
|
|
|
"is_limited": "N",
|
|
|
"is_outlets": "N",
|
|
|
"is_special": "N",
|
|
|
"last_price": "228.0",
|
|
|
"last_vip_price": 228,
|
|
|
"local_buy_number": 0,
|
|
|
"market_price": 229,
|
|
|
"max_sort_id": "1",
|
|
|
"middle_sort_id": "22",
|
|
|
"min_buy_number": 1,
|
|
|
"off_shelves": 0,
|
|
|
"offline_goods_status": 1,
|
|
|
"offline_storage_number": 0,
|
|
|
"offline_storage_status": 1,
|
|
|
"online_storage_number": 0,
|
|
|
"product_id": 306601,
|
|
|
"product_name": "JNBY 复古女装外套风衣",
|
|
|
"product_skc": "301244",
|
|
|
"product_skn": "51170925",
|
|
|
"product_sku": "950949",
|
|
|
"promotion_flag": "0",
|
|
|
"promotion_id": "0",
|
|
|
"real_price": 216.6,
|
|
|
"real_vip_price": 0,
|
|
|
"sale_price": 0,
|
|
|
"sales_price": 228,
|
|
|
"selected": "Y",
|
|
|
"shop_id": 20,
|
|
|
"shopping_cart_goods_id": "65876",
|
|
|
"shopping_cart_id": "118792348",
|
|
|
"shopping_key": "2a7729e3e974cfe476e4472a89c13743",
|
|
|
"size_id": "201",
|
|
|
"size_name": "L",
|
|
|
"small_sort_id": "125",
|
|
|
"storage_number": "2",
|
|
|
"store_id": 0,
|
|
|
"supplier_id": 1038,
|
|
|
"tags": [],
|
|
|
"uid": "8040155",
|
|
|
"vip1_price": "0.00",
|
|
|
"vip2_price": "0.00",
|
|
|
"vip3_price": "0.00",
|
|
|
"vip_discount": 1,
|
|
|
"vip_discount_money": 0,
|
|
|
"vip_discount_type": "3",
|
|
|
"vip_price": 0,
|
|
|
"wareHouseId": 0,
|
|
|
"yoho_coin_num": "0"
|
|
|
},
|
|
|
{
|
|
|
"attribute": "1",
|
|
|
"brand_domain": "JNBY",
|
|
|
"brand_id": "1026",
|
|
|
"brand_name": "jnby",
|
|
|
"bundle_activity_id": 100672,
|
|
|
"buy_limit": 0,
|
|
|
"buy_number": "1",
|
|
|
"buy_type": 2,
|
|
|
"can_cod_pay": "Y",
|
|
|
"cn_alphabet": "5C68012",
|
|
|
"color_id": "8",
|
|
|
"color_name": "紫色",
|
|
|
"delay_notice": "",
|
|
|
"discount_tag": "",
|
|
|
"expect_arrival_time": "",
|
|
|
"factory_goods_name": "紫色",
|
|
|
"fit_promotions": [],
|
|
|
"get_yoho_coin": "0",
|
|
|
"goods_id": "394183",
|
|
|
"goods_images": "http://img12.static.yhbimg.com/goodsimg/2015/11/10/08/023145d71f468f308f90470b9ff0d72925.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_type": "ordinary",
|
|
|
"is_advance": "N",
|
|
|
"is_deposit_advance": "N",
|
|
|
"is_jit": "Y",
|
|
|
"is_limited": "N",
|
|
|
"is_outlets": "N",
|
|
|
"is_special": "N",
|
|
|
"last_price": "398.0",
|
|
|
"last_vip_price": 398,
|
|
|
"local_buy_number": 0,
|
|
|
"market_price": 399,
|
|
|
"max_sort_id": "1",
|
|
|
"middle_sort_id": "257",
|
|
|
"min_buy_number": 1,
|
|
|
"off_shelves": 0,
|
|
|
"offline_goods_status": 1,
|
|
|
"offline_storage_number": 0,
|
|
|
"offline_storage_status": 1,
|
|
|
"online_storage_number": 0,
|
|
|
"product_id": 306603,
|
|
|
"product_name": "JNBY 连帽针织羊毛开衫",
|
|
|
"product_skc": "301263",
|
|
|
"product_skn": "51170930",
|
|
|
"product_sku": "951031",
|
|
|
"promotion_flag": "0",
|
|
|
"promotion_id": "0",
|
|
|
"real_price": 378.1,
|
|
|
"real_vip_price": 0,
|
|
|
"sale_price": 0,
|
|
|
"sales_price": 398,
|
|
|
"selected": "Y",
|
|
|
"shop_id": 20,
|
|
|
"shopping_cart_goods_id": "65874",
|
|
|
"shopping_cart_id": "118792348",
|
|
|
"shopping_key": "2a7729e3e974cfe476e4472a89c13743",
|
|
|
"size_id": "203",
|
|
|
"size_name": "M",
|
|
|
"small_sort_id": "258",
|
|
|
"storage_number": "1",
|
|
|
"store_id": 0,
|
|
|
"supplier_id": 1038,
|
|
|
"tags": [],
|
|
|
"uid": "8040155",
|
|
|
"vip1_price": "0.00",
|
|
|
"vip2_price": "0.00",
|
|
|
"vip3_price": "0.00",
|
|
|
"vip_discount": 1,
|
|
|
"vip_discount_money": 0,
|
|
|
"vip_discount_type": "3",
|
|
|
"vip_price": 0,
|
|
|
"wareHouseId": 0,
|
|
|
"yoho_coin_num": "0"
|
|
|
},
|
|
|
{
|
|
|
"attribute": "1",
|
|
|
"brand_domain": "JNBY",
|
|
|
"brand_id": "1026",
|
|
|
"brand_name": "jnby",
|
|
|
"bundle_activity_id": 100672,
|
|
|
"buy_limit": 0,
|
|
|
"buy_number": "1",
|
|
|
"buy_type": 2,
|
|
|
"can_cod_pay": "Y",
|
|
|
"cn_alphabet": "5F024236DaYi/FengYi",
|
|
|
"color_id": "3",
|
|
|
"color_name": "灰色",
|
|
|
"delay_notice": "",
|
|
|
"discount_tag": "",
|
|
|
"expect_arrival_time": "",
|
|
|
"factory_goods_name": "灰色",
|
|
|
"fit_promotions": [],
|
|
|
"get_yoho_coin": "0",
|
|
|
"goods_id": "436831",
|
|
|
"goods_images": "http://img12.static.yhbimg.com/goodsimg/2016/01/12/03/02d11c4baacfe8dc0989aa3cc7e44e3a3b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_type": "ordinary",
|
|
|
"is_advance": "N",
|
|
|
"is_deposit_advance": "N",
|
|
|
"is_jit": "Y",
|
|
|
"is_limited": "N",
|
|
|
"is_outlets": "N",
|
|
|
"is_special": "N",
|
|
|
"last_price": "11.0",
|
|
|
"last_vip_price": 11,
|
|
|
"local_buy_number": 0,
|
|
|
"market_price": 1890,
|
|
|
"max_sort_id": "1",
|
|
|
"middle_sort_id": "22",
|
|
|
"min_buy_number": 1,
|
|
|
"off_shelves": 0,
|
|
|
"offline_goods_status": 1,
|
|
|
"offline_storage_number": 0,
|
|
|
"offline_storage_status": 1,
|
|
|
"online_storage_number": 0,
|
|
|
"product_id": 340177,
|
|
|
"product_name": "JNBY 衬衫领式长款羊毛大衣",
|
|
|
"product_skc": "326237",
|
|
|
"product_skn": "51189501",
|
|
|
"product_sku": "1019324",
|
|
|
"promotion_flag": "109",
|
|
|
"promotion_id": "0",
|
|
|
"real_price": 10.45,
|
|
|
"real_vip_price": 0,
|
|
|
"sale_price": 0,
|
|
|
"sales_price": 11,
|
|
|
"selected": "Y",
|
|
|
"shop_id": 20,
|
|
|
"shopping_cart_goods_id": "65872",
|
|
|
"shopping_cart_id": "118792348",
|
|
|
"shopping_key": "2a7729e3e974cfe476e4472a89c13743",
|
|
|
"size_id": "207",
|
|
|
"size_name": "S",
|
|
|
"small_sort_id": "125",
|
|
|
"storage_number": "111111",
|
|
|
"store_id": 0,
|
|
|
"supplier_id": 1038,
|
|
|
"tags": [],
|
|
|
"uid": "8040155",
|
|
|
"vip1_price": "10.45",
|
|
|
"vip2_price": "9.90",
|
|
|
"vip3_price": "9.68",
|
|
|
"vip_discount": 1,
|
|
|
"vip_discount_money": 0,
|
|
|
"vip_discount_type": "1",
|
|
|
"vip_price": 11,
|
|
|
"wareHouseId": 0,
|
|
|
"yoho_coin_num": "0"
|
|
|
},
|
|
|
{
|
|
|
"attribute": "1",
|
|
|
"brand_domain": "JNBY",
|
|
|
"brand_id": "1026",
|
|
|
"brand_name": "jnby",
|
|
|
"bundle_activity_id": 100672,
|
|
|
"buy_limit": 0,
|
|
|
"buy_number": "1",
|
|
|
"buy_type": 2,
|
|
|
"can_cod_pay": "Y",
|
|
|
"cn_alphabet": "5C62156",
|
|
|
"color_id": "4",
|
|
|
"color_name": "棕色",
|
|
|
"delay_notice": "",
|
|
|
"discount_tag": "",
|
|
|
"expect_arrival_time": "",
|
|
|
"factory_goods_name": "棕色",
|
|
|
"fit_promotions": [],
|
|
|
"get_yoho_coin": "0",
|
|
|
"goods_id": "394189",
|
|
|
"goods_images": "http://img12.static.yhbimg.com/goodsimg/2015/11/10/07/02f898bdb5f930bd26002dcc4f09f6044b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_type": "ordinary",
|
|
|
"is_advance": "N",
|
|
|
"is_deposit_advance": "N",
|
|
|
"is_jit": "Y",
|
|
|
"is_limited": "N",
|
|
|
"is_outlets": "N",
|
|
|
"is_special": "N",
|
|
|
"last_price": "208.0",
|
|
|
"last_vip_price": 208,
|
|
|
"local_buy_number": 0,
|
|
|
"market_price": 209,
|
|
|
"max_sort_id": "1",
|
|
|
"middle_sort_id": "22",
|
|
|
"min_buy_number": 1,
|
|
|
"off_shelves": 0,
|
|
|
"offline_goods_status": 1,
|
|
|
"offline_storage_number": 0,
|
|
|
"offline_storage_status": 1,
|
|
|
"online_storage_number": 0,
|
|
|
"product_id": 306607,
|
|
|
"product_name": "JNBY 蕾丝拼接复古夹克",
|
|
|
"product_skc": "301239",
|
|
|
"product_skn": "51170924",
|
|
|
"product_sku": "950926",
|
|
|
"promotion_flag": "0",
|
|
|
"promotion_id": "0",
|
|
|
"real_price": 197.6,
|
|
|
"real_vip_price": 0,
|
|
|
"sale_price": 0,
|
|
|
"sales_price": 208,
|
|
|
"selected": "Y",
|
|
|
"shop_id": 20,
|
|
|
"shopping_cart_goods_id": "65870",
|
|
|
"shopping_cart_id": "118792348",
|
|
|
"shopping_key": "2a7729e3e974cfe476e4472a89c13743",
|
|
|
"size_id": "201",
|
|
|
"size_name": "L",
|
|
|
"small_sort_id": "125",
|
|
|
"storage_number": "1",
|
|
|
"store_id": 0,
|
|
|
"supplier_id": 1038,
|
|
|
"tags": [],
|
|
|
"uid": "8040155",
|
|
|
"vip1_price": "0.00",
|
|
|
"vip2_price": "0.00",
|
|
|
"vip3_price": "0.00",
|
|
|
"vip_discount": 1,
|
|
|
"vip_discount_money": 0,
|
|
|
"vip_discount_type": "3",
|
|
|
"vip_price": 0,
|
|
|
"wareHouseId": 0,
|
|
|
"yoho_coin_num": "0"
|
|
|
}
|
|
|
],
|
|
|
"pool_buy_number": "1",//套餐商品池购物数量
|
|
|
"pool_id": 100672,//套餐商品池id
|
|
|
"pool_title": "21212121212121",//套餐商品标题
|
|
|
"pool_type": 3,//商品池类型
|
|
|
"selected": "Y"//是否选中,Y 是,N 是
|
|
|
},
|
|
|
{
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"attribute": "1",
|
|
|
"brand_domain": "Korakublue",
|
|
|
"brand_id": "196",
|
|
|
"brand_name": "korakublue",
|
|
|
"bundle_activity_id": 0,
|
|
|
"buy_limit": 0,
|
|
|
"buy_number": "1",
|
|
|
"buy_type": 2,
|
|
|
"can_cod_pay": "Y",
|
|
|
"cn_alphabet": "KORAKUBLUEL186DanNingJiaMianPinJieKeChaiXieXiuHouDaYi",
|
|
|
"color_id": "1",
|
|
|
"color_name": "白色",
|
|
|
"delay_notice": "",
|
|
|
"discount_tag": "V",
|
|
|
"expect_arrival_time": "",
|
|
|
"factory_goods_name": "白色",
|
|
|
"fit_promotions": [],
|
|
|
"get_yoho_coin": "0",
|
|
|
"goods_id": "439789",
|
|
|
"goods_images": "http://img13.static.yhbimg.com/goodsimg/2016/01/06/05/02651a220156065fd2c0a5f0f5b5c2a1b1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_type": "ordinary",
|
|
|
"is_advance": "N",
|
|
|
"is_deposit_advance": "N",
|
|
|
"is_jit": "N",
|
|
|
"is_limited": "N",
|
|
|
"is_outlets": "N",
|
|
|
"is_special": "N",
|
|
|
"last_price": "9.68",
|
|
|
"last_vip_price": 9.68,
|
|
|
"local_buy_number": 0,
|
|
|
"market_price": 1139,
|
|
|
"max_sort_id": "1",
|
|
|
"middle_sort_id": "20",
|
|
|
"min_buy_number": 1,
|
|
|
"off_shelves": 0,
|
|
|
"offline_goods_status": 1,
|
|
|
"offline_storage_number": 0,
|
|
|
"offline_storage_status": 1,
|
|
|
"online_storage_number": 0,
|
|
|
"product_id": 342719,
|
|
|
"product_name": "Korakublue 丹宁拼接可拆卸袖棉衣",
|
|
|
"product_skc": "328133",
|
|
|
"product_skn": "51191159",
|
|
|
"product_sku": "1024840",
|
|
|
"promotion_flag": "0",
|
|
|
"promotion_id": "0",
|
|
|
"real_price": 9.68,
|
|
|
"real_vip_price": 9.68,
|
|
|
"sale_price": 0,
|
|
|
"sales_price": 11,
|
|
|
"selected": "N",
|
|
|
"shop_id": 1642,
|
|
|
"shopping_cart_goods_id": "65868",
|
|
|
"shopping_cart_id": "118792348",
|
|
|
"shopping_key": "2a7729e3e974cfe476e4472a89c13743",
|
|
|
"size_id": "201",
|
|
|
"size_name": "L",
|
|
|
"small_sort_id": "123",
|
|
|
"storage_number": "2",
|
|
|
"store_id": 0,
|
|
|
"str_subtotal": "¥9.68",
|
|
|
"subtotal": 9.68,
|
|
|
"supplier_id": 0,
|
|
|
"tags": [],
|
|
|
"uid": "8040155",
|
|
|
"vip1_price": "10.45",
|
|
|
"vip2_price": "9.90",
|
|
|
"vip3_price": "9.68",
|
|
|
"vip_discount": 0.88,
|
|
|
"vip_discount_money": 1.32,
|
|
|
"vip_discount_type": "1",
|
|
|
"vip_price": 11,
|
|
|
"wareHouseId": 0,
|
|
|
"yoho_coin_num": "0"
|
|
|
}
|
|
|
],
|
|
|
"pool_buy_number": "1",
|
|
|
"pool_id": 0,
|
|
|
"pool_title": "korakublue",
|
|
|
"pool_type": 1,
|
|
|
"selected": "N"
|
|
|
}
|
|
|
],
|
|
|
"match_gift_ids": [],
|
|
|
"off_shelves_goods_list": [],
|
|
|
"promotion_info": [
|
|
|
{
|
|
|
"cutdown_amount": 42.25,
|
|
|
"promotion_id": 0,
|
|
|
"promotion_title": "21212121212121",
|
|
|
"promotion_type": "bundle-100672"
|
|
|
},
|
|
|
{
|
|
|
"cutdown_amount": 10,
|
|
|
"promotion_id": 0,
|
|
|
"promotion_title": "满¥399免运费",
|
|
|
"promotion_type": "FreeShippingCost"
|
|
|
}
|
|
|
],
|
|
|
"shopping_cart_data": {
|
|
|
"discount_amount": 42.25,
|
|
|
"fast_shopping_cost": 0,
|
|
|
"gain_yoho_coin": 0,
|
|
|
"goods_count": 8,
|
|
|
"has_invalid_goods": 0,
|
|
|
"is_multi_package": "N",
|
|
|
"last_order_amount": 1258.75,
|
|
|
"offline_goods_count": 0,
|
|
|
"online_goods_count": 0,
|
|
|
"order_amount": 1301,
|
|
|
"package_list": [],
|
|
|
"promotion_formula": "总计¥1258.75=商品金额¥1301.00-活动金额¥42.25",
|
|
|
"promotion_formula_list": [
|
|
|
{
|
|
|
"promotion": "商品金额",
|
|
|
"promotion_amount": "¥1301.00"
|
|
|
},
|
|
|
{
|
|
|
"promotion": "活动金额",
|
|
|
"promotion_amount": "-¥42.25"
|
|
|
}
|
|
|
],
|
|
|
"remain_time": 0,
|
|
|
"selected_goods_count": 6,
|
|
|
"shipping_cost": 0,
|
|
|
"str_discount_amount": "¥42.25",
|
|
|
"str_order_amount": "¥1301.00"
|
|
|
},
|
|
|
"sold_out_goods_list": [],
|
|
|
"sold_out_goods_pool": []
|
|
|
}
|
|
|
},
|
|
|
"md5": "e2c62030c5404412b17e56bbd90f39de",
|
|
|
"message": "cart goods list."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
...
|
...
|
@@ -770,19 +79,19 @@ |
|
|
### 请求参数
|
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| method | string | 否 | app.Shopping.selectedAndQryCart | | |
|
|
|
| uid | int | 否 | 5772257 | | |
|
|
|
| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | |
|
|
|
| method | string | 是 | app.Shopping.selectedAndQryCart | | |
|
|
|
| uid | int | 是 | 5772257 | | |
|
|
|
| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | |
|
|
|
| product_sku_list | string | 是 | [{"product_sku":131874,"buy_number":2,"promotion_id":0,"activity_id":12,"selected":"N"}] | | |
|
|
|
|
|
|
### product_sku_list参数
|
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| product_sku | int | 否 | | | |
|
|
|
| buy_number | int | 否 | 数量 | | |
|
|
|
| promotion_id | int | 否 | 促销id | | |
|
|
|
| activity_id | int | 否 | 活动id | | |
|
|
|
| selected | string | 否 | 是否选中,Y 是,N 否 | | |
|
|
|
| product_sku | int | 是 | | | |
|
|
|
| buy_number | int | 是| 数量 | | |
|
|
|
| promotion_id | int | 是 | 促销id | | |
|
|
|
| activity_id | int | 是 | 活动id | | |
|
|
|
| selected | string | 是 | 是否选中,Y 是,N 否 | | |
|
|
|
|
|
|
### 正常返回结果
|
|
|
```json
|
...
|
...
|
@@ -803,17 +112,17 @@ |
|
|
### 请求参数
|
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| method | string | 否 | app.Shopping.removeAndQryCart | | |
|
|
|
| uid | int | 否 | 5772257 | | |
|
|
|
| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | |
|
|
|
| method | string | 是 | app.Shopping.removeAndQryCart | | |
|
|
|
| uid | int | 是 | 5772257 | | |
|
|
|
| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | |
|
|
|
| product_sku_list | string | 是 | [{"product_sku":131874,"buy_number":2,"promotion_id":0,"activity_id":12}] | | |
|
|
|
|
|
|
### product_sku_list参数
|
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| product_sku | int | 否 | | | |
|
|
|
| buy_number | int | 否 | 数量 | | |
|
|
|
| promotion_id | int | 否 | 促销id | | |
|
|
|
| product_sku | int | 是 | | | |
|
|
|
| buy_number | int | 是 | 数量 | | |
|
|
|
| promotion_id | int | 是 | 促销id | | |
|
|
|
| activity_id | int | 是 | 活动id | | |
|
|
|
|
|
|
### 正常返回结果
|
...
|
...
|
@@ -836,10 +145,10 @@ |
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| method | string | 是 | app.Shopping.incrBundle | | |
|
|
|
| uid | int | 否 | 5772257 | |用户id |
|
|
|
| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | 购物车key|
|
|
|
| increase_number | int | 否 | 1 | 1 | 增加数量 |
|
|
|
| activity_id | int | 否 | | | 活动id |
|
|
|
| uid | int | 是 | 5772257 | |用户id |
|
|
|
| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | 购物车key|
|
|
|
| increase_number | int | 是 | 1 | 1 | 增加数量 |
|
|
|
| activity_id | int | 是 | | | 活动id |
|
|
|
|
|
|
### 正常返回结果
|
|
|
```json
|
...
|
...
|
@@ -870,10 +179,10 @@ |
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| method | string | 是 | app.Shopping.decrBundle | | |
|
|
|
| uid | int | 否 | 5772257 | |用户id |
|
|
|
| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | 购物车key|
|
|
|
| decrease_number | int | 否 | 1 | 1 | 减少数量 |
|
|
|
| activity_id | int | 否 | | | 活动id |
|
|
|
| uid | int | 是 | 5772257 | |用户id |
|
|
|
| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | 购物车key|
|
|
|
| decrease_number | int | 是 | 1 | 1 | 减少数量 |
|
|
|
| activity_id | int | 是 | | | 活动id |
|
|
|
|
|
|
### 正常返回结果
|
|
|
```json
|
...
|
...
|
@@ -889,39 +198,6 @@ |
|
|
}
|
|
|
```
|
|
|
|
|
|
### 更换套餐中的商品
|
|
|
|
|
|
### 接口说明
|
|
|
|
|
|
| 接口说明 | 接口说明 |
|
|
|
| :-- | -----: |
|
|
|
| 接口名 | app.Shopping.swapBundle |
|
|
|
| 接口说明 | 更换套餐中的商品 |
|
|
|
| http请求方式 | POST |
|
|
|
|
|
|
### 请求参数
|
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| method | string | 是 | app.Shopping.swapBundle | | |
|
|
|
| uid | int | 否 | 5772257 | | |
|
|
|
| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | |
|
|
|
| activity_id | int | 否 | 1234 | | |
|
|
|
| swap_data | string | 是 | [{"new_product_sku":"886593","old_product_sku":"131874"}] | | 更换商品信息 |
|
|
|
|
|
|
### 正常返回结果
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"goods_count": "7", //套餐商品的更换数量
|
|
|
"shopping_key": "c36408a268e9b9418189d9a71967379e" //shopping_key
|
|
|
},
|
|
|
"md5": "f9a4a776eb18b6d62a7b3ba992fa6041",
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
### 移到商品到收藏夹并查询购物车
|
|
|
|
...
|
...
|
@@ -954,9 +230,9 @@ |
|
|
### 请求参数
|
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| method | string | 否 | app.Shopping.swapGift | | |
|
|
|
| uid | int | 否 | 5772257 | | |
|
|
|
| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | |
|
|
|
| method | string | 是 | app.Shopping.swapGift | | |
|
|
|
| uid | int | 是 | 5772257 | | |
|
|
|
| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | |
|
|
|
| promotion_id | int | 是 | 111111 | | |
|
|
|
| new_product_skn | int | 是 | 1 | | |
|
|
|
| new_product_sku | int | 是 | 1 | | |
|
...
|
...
|
|