Showing
1 changed file
with
36 additions
and
760 deletions
@@ -13,18 +13,18 @@ | @@ -13,18 +13,18 @@ | ||
13 | ### 请求参数 | 13 | ### 请求参数 |
14 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | 14 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | |
15 | | :-- | :-- | :-- | :-- | :-- | :-- | | 15 | | :-- | :-- | :-- | :-- | :-- | :-- | |
16 | -| method | string | 否 | app.Shopping.addBundle | | | | ||
17 | -| uid | int | 否 | 5772257 | |用户id | | ||
18 | -| shopping_key | int | 否 | c36408a268e9b9418189d9a71967379e | | 购物车key| | ||
19 | -| activity_id | int | 否 | | | 活动id | | ||
20 | -| product_sku_list | string | 否 | [{"type":"bundle","sku":"1385644","buy_number":"1"},{"type":"bundle","sku":"1385644","buy_number":"1"}] | | 套餐商品 | | 16 | +| method | string | 是 | app.Shopping.addBundle | | | |
17 | +| uid | int | 是 | 5772257 | |用户id | | ||
18 | +| shopping_key | int | 是 | c36408a268e9b9418189d9a71967379e | | 购物车key| | ||
19 | +| activity_id | int | 是 | | | 活动id | | ||
20 | +| product_sku_list | string | 是 | [{"type":"bundle","sku":"1385644","buy_number":"1"},{"type":"bundle","sku":"1385644","buy_number":"1"}] | | 套餐商品 | | ||
21 | 21 | ||
22 | ### product_sku_list参数 | 22 | ### product_sku_list参数 |
23 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | 23 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | |
24 | | :-- | :-- | :-- | :-- | :-- | :-- | | 24 | | :-- | :-- | :-- | :-- | :-- | :-- | |
25 | -| type | string | 否 | bundle| | | | ||
26 | -| sku | string | 否 | | | 商品sku| | ||
27 | -| buy_number | string | 否 | | | 购买数量 | | 25 | +| type | string | 是 | bundle| | | |
26 | +| sku | string | 是 | | | 商品sku| | ||
27 | +| buy_number | string | 是 | | | 购买数量 | | ||
28 | 28 | ||
29 | ### 正常返回结果 | 29 | ### 正常返回结果 |
30 | ```json | 30 | ```json |
@@ -55,704 +55,13 @@ | @@ -55,704 +55,13 @@ | ||
55 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | 55 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | |
56 | | :-- | :-- | :-- | :-- | :-- | :-- | | 56 | | :-- | :-- | :-- | :-- | :-- | :-- | |
57 | | method | string | 是 | app.Shopping.queryCart | | | | 57 | | method | string | 是 | app.Shopping.queryCart | | | |
58 | -| uid | int | 否 | 5772257 | | | | ||
59 | -| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | | | 58 | +| uid | int | 是 | 5772257 | | | |
59 | +| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | | | ||
60 | | sale_channel | string | 否 | 1 | 1 | | | 60 | | sale_channel | string | 否 | 1 | 1 | | |
61 | 61 | ||
62 | ### 正常返回结果 | 62 | ### 正常返回结果 |
63 | ```json | 63 | ```json |
64 | - { | ||
65 | - "alg": "SALT_MD5", | ||
66 | - "code": 200, | ||
67 | - "data": { | ||
68 | - "advance_cart_data": {//预售购物车 | ||
69 | - "g_gift_list": [], | ||
70 | - "g_price_gift_list": [], | ||
71 | - "goods_list": [], | ||
72 | - "goods_pool_list": [], | ||
73 | - "off_shelves_goods_list": [], | ||
74 | - "promotion_info": [ | ||
75 | - { | ||
76 | - "cutdown_amount": 10, | ||
77 | - "promotion_id": 0, | ||
78 | - "promotion_title": "金卡免运费", | ||
79 | - "promotion_type": "VipFreeShippingCost" | ||
80 | - } | ||
81 | - ], | ||
82 | - "shopping_cart_data": { | ||
83 | - "discount_amount": 0, | ||
84 | - "fast_shopping_cost": 0, | ||
85 | - "gain_yoho_coin": 0, | ||
86 | - "goods_count": 0, | ||
87 | - "has_invalid_goods": 0, | ||
88 | - "is_multi_package": "N", | ||
89 | - "last_order_amount": 0, | ||
90 | - "offline_goods_count": 0, | ||
91 | - "online_goods_count": 0, | ||
92 | - "order_amount": 0, | ||
93 | - "package_list": [], | ||
94 | - "promotion_formula": "总计¥0.00=商品金额¥0.00", | ||
95 | - "promotion_formula_list": [ | ||
96 | - { | ||
97 | - "promotion": "商品金额", | ||
98 | - "promotion_amount": "¥0.00" | ||
99 | - } | ||
100 | - ], | ||
101 | - "remain_time": 0, | ||
102 | - "selected_goods_count": 0, | ||
103 | - "shipping_cost": 0, | ||
104 | - "str_discount_amount": "¥0.00", | ||
105 | - "str_order_amount": "¥0.00" | ||
106 | - }, | ||
107 | - "sold_out_goods_list": [], | ||
108 | - "sold_out_goods_pool": [] | ||
109 | - }, | ||
110 | - "ordinary_cart_data": {//普通购物车 | ||
111 | - "g_gift_list": [],//全程赠品促销 | ||
112 | - "g_price_gift_list": [//全程加价购物购促销 | ||
113 | - { | ||
114 | - "alreadyMatch": true, | ||
115 | - "condition_unit": 0, | ||
116 | - "condition_value": 0, | ||
117 | - "promotion_desc": "已满足【全场加价购】", | ||
118 | - "promotion_id": 10190, | ||
119 | - "promotion_title": "全场加价购", | ||
120 | - "promotion_type": "Needpaygift", | ||
121 | - "status": 10 | ||
122 | - } | ||
123 | - ], | ||
124 | - "goods_list": [], | ||
125 | - "goods_pool_list": [ | ||
126 | - { | ||
127 | - "pool_id": 0, | ||
128 | - "pool_type": 2, | ||
129 | - "promotion_list": [ | ||
130 | - { | ||
131 | - "alreadyMatch": false, | ||
132 | - "condition_unit": 2, | ||
133 | - "condition_value": -300, | ||
134 | - "promotion_desc": "差¥300.00元立享【满300减120-- test5.4.1】",//促销描述 | ||
135 | - "promotion_id": 10262, | ||
136 | - "promotion_title": "D-R-S1:【STAYREAL品牌】满300减120-- test5.4.1", | ||
137 | - "promotion_type": "Cashreduce", | ||
138 | - "status": 0 | ||
139 | - } | ||
140 | - ], | ||
141 | - "sub_pool": [ | ||
142 | - { | ||
143 | - "goods_list": [ | ||
144 | - { | ||
145 | - "attribute": "1", | ||
146 | - "brand_domain": "STAYREAL", | ||
147 | - "brand_id": "197", | ||
148 | - "brand_name": "stayreal", | ||
149 | - "bundle_activity_id": 0, | ||
150 | - "buy_limit": 0, | ||
151 | - "buy_number": "1", | ||
152 | - "buy_type": 2, | ||
153 | - "can_cod_pay": "Y", | ||
154 | - "cn_alphabet": "STAYREALGeWenQuXiuShenChangKuKaQiSeHeiBiaoDP15027C5", | ||
155 | - "color_id": "4", | ||
156 | - "color_name": "棕色", | ||
157 | - "delay_notice": "", | ||
158 | - "discount_tag": "V", | ||
159 | - "expect_arrival_time": "", | ||
160 | - "factory_goods_name": "棕色", | ||
161 | - "fit_promotions": [], | ||
162 | - "get_yoho_coin": "0", | ||
163 | - "goods_id": "443199", | ||
164 | - "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", | ||
165 | - "goods_type": "ordinary", | ||
166 | - "is_advance": "N", | ||
167 | - "is_deposit_advance": "N", | ||
168 | - "is_jit": "N", | ||
169 | - "is_limited": "N", | ||
170 | - "is_outlets": "N", | ||
171 | - "is_special": "N", | ||
172 | - "last_price": "9.68", | ||
173 | - "last_vip_price": 9.68, | ||
174 | - "local_buy_number": 0, | ||
175 | - "market_price": 499, | ||
176 | - "max_sort_id": "3", | ||
177 | - "middle_sort_id": "26", | ||
178 | - "min_buy_number": 1, | ||
179 | - "off_shelves": 0, | ||
180 | - "offline_goods_status": 1, | ||
181 | - "offline_storage_number": 0, | ||
182 | - "offline_storage_status": 1, | ||
183 | - "online_storage_number": 0, | ||
184 | - "product_id": 339717, | ||
185 | - "product_name": "STAYREAL 格纹趣味修身长裤", | ||
186 | - "product_skc": "329739", | ||
187 | - "product_skn": "51189400", | ||
188 | - "product_sku": "1030019", | ||
189 | - "promotion_flag": "104", | ||
190 | - "promotion_id": "0", | ||
191 | - "real_price": 9.68, | ||
192 | - "real_vip_price": 9.68, | ||
193 | - "sale_price": 0, | ||
194 | - "sales_price": 11, | ||
195 | - "selected": "N", | ||
196 | - "shop_id": 0, | ||
197 | - "shopping_cart_goods_id": "65924", | ||
198 | - "shopping_cart_id": "118792348", | ||
199 | - "shopping_key": "2a7729e3e974cfe476e4472a89c13743", | ||
200 | - "size_id": "201", | ||
201 | - "size_name": "L", | ||
202 | - "small_sort_id": "129", | ||
203 | - "storage_number": "3", | ||
204 | - "store_id": 0, | ||
205 | - "str_subtotal": "¥9.68", | ||
206 | - "subtotal": 9.68, | ||
207 | - "supplier_id": 0, | ||
208 | - "tags": [], | ||
209 | - "uid": "8040155", | ||
210 | - "vip1_price": "10.45", | ||
211 | - "vip2_price": "9.90", | ||
212 | - "vip3_price": "9.68", | ||
213 | - "vip_discount": 0.88, | ||
214 | - "vip_discount_money": 1.32, | ||
215 | - "vip_discount_type": "1", | ||
216 | - "vip_price": 11, | ||
217 | - "wareHouseId": 0, | ||
218 | - "yoho_coin_num": "0" | ||
219 | - } | ||
220 | - ], | ||
221 | - "pool_id": 0, | ||
222 | - "pool_type": 1 | ||
223 | - } | ||
224 | - ] | ||
225 | - }, | ||
226 | - { | ||
227 | - "goods_list": [ | ||
228 | - { | ||
229 | - "attribute": "1", | ||
230 | - "brand_domain": "JNBY", | ||
231 | - "brand_id": "1026", | ||
232 | - "brand_name": "jnby", | ||
233 | - "bundle_activity_id": 0, | ||
234 | - "buy_limit": 0, | ||
235 | - "buy_number": "2", | ||
236 | - "buy_type": 2, | ||
237 | - "can_cod_pay": "Y", | ||
238 | - "cn_alphabet": "5C62185", | ||
239 | - "color_id": "3", | ||
240 | - "color_name": "灰色", | ||
241 | - "delay_notice": "", | ||
242 | - "discount_tag": "", | ||
243 | - "expect_arrival_time": "", | ||
244 | - "factory_goods_name": "灰色", | ||
245 | - "fit_promotions": [ | ||
246 | - "10190" | ||
247 | - ], | ||
248 | - "get_yoho_coin": "0", | ||
249 | - "goods_id": "394171", | ||
250 | - "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", | ||
251 | - "goods_type": "ordinary", | ||
252 | - "is_advance": "N", | ||
253 | - "is_deposit_advance": "N", | ||
254 | - "is_jit": "Y", | ||
255 | - "is_limited": "N", | ||
256 | - "is_outlets": "N", | ||
257 | - "is_special": "N", | ||
258 | - "last_price": "228.0", | ||
259 | - "last_vip_price": 228, | ||
260 | - "local_buy_number": 0, | ||
261 | - "market_price": 229, | ||
262 | - "max_sort_id": "1", | ||
263 | - "middle_sort_id": "22", | ||
264 | - "min_buy_number": 1, | ||
265 | - "off_shelves": 0, | ||
266 | - "offline_goods_status": 1, | ||
267 | - "offline_storage_number": 0, | ||
268 | - "offline_storage_status": 1, | ||
269 | - "online_storage_number": 0, | ||
270 | - "product_id": 306601, | ||
271 | - "product_name": "JNBY 复古女装外套风衣", | ||
272 | - "product_skc": "301244", | ||
273 | - "product_skn": "51170925", | ||
274 | - "product_sku": "950949", | ||
275 | - "promotion_flag": "0", | ||
276 | - "promotion_id": "0", | ||
277 | - "real_price": 228, | ||
278 | - "real_vip_price": 0, | ||
279 | - "sale_price": 0, | ||
280 | - "sales_price": 228, | ||
281 | - "selected": "Y", | ||
282 | - "shop_id": 20, | ||
283 | - "shopping_cart_goods_id": "65906", | ||
284 | - "shopping_cart_id": "118792348", | ||
285 | - "shopping_key": "2a7729e3e974cfe476e4472a89c13743", | ||
286 | - "size_id": "201", | ||
287 | - "size_name": "L", | ||
288 | - "small_sort_id": "125", | ||
289 | - "storage_number": "2", | ||
290 | - "store_id": 0, | ||
291 | - "str_subtotal": "¥456.00", | ||
292 | - "subtotal": 456, | ||
293 | - "supplier_id": 1038, | ||
294 | - "tags": [], | ||
295 | - "uid": "8040155", | ||
296 | - "vip1_price": "0.00", | ||
297 | - "vip2_price": "0.00", | ||
298 | - "vip3_price": "0.00", | ||
299 | - "vip_discount": 1, | ||
300 | - "vip_discount_money": 0, | ||
301 | - "vip_discount_type": "3", | ||
302 | - "vip_price": 0, | ||
303 | - "wareHouseId": 0, | ||
304 | - "yoho_coin_num": "0" | ||
305 | - } | ||
306 | - ], | ||
307 | - "pool_buy_number": "2", | ||
308 | - "pool_id": 0, | ||
309 | - "pool_title": "jnby", | ||
310 | - "pool_type": 1, | ||
311 | - "selected": "Y" | ||
312 | - }, | ||
313 | - { | ||
314 | - "goods_list": [ | ||
315 | - { | ||
316 | - "attribute": "1", | ||
317 | - "brand_domain": "JNBY", | ||
318 | - "brand_id": "1026", | ||
319 | - "brand_name": "jnby", | ||
320 | - "bundle_activity_id": 100672, | ||
321 | - "buy_limit": 0, | ||
322 | - "buy_number": "1", | ||
323 | - "buy_type": 2, | ||
324 | - "can_cod_pay": "Y", | ||
325 | - "cn_alphabet": "5C62185", | ||
326 | - "color_id": "3", | ||
327 | - "color_name": "灰色", | ||
328 | - "delay_notice": "", | ||
329 | - "discount_tag": "", | ||
330 | - "expect_arrival_time": "", | ||
331 | - "factory_goods_name": "灰色", | ||
332 | - "fit_promotions": [], | ||
333 | - "get_yoho_coin": "0", | ||
334 | - "goods_id": "394171", | ||
335 | - "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", | ||
336 | - "goods_type": "ordinary", | ||
337 | - "is_advance": "N", | ||
338 | - "is_deposit_advance": "N", | ||
339 | - "is_jit": "Y", | ||
340 | - "is_limited": "N", | ||
341 | - "is_outlets": "N", | ||
342 | - "is_special": "N", | ||
343 | - "last_price": "228.0", | ||
344 | - "last_vip_price": 228, | ||
345 | - "local_buy_number": 0, | ||
346 | - "market_price": 229, | ||
347 | - "max_sort_id": "1", | ||
348 | - "middle_sort_id": "22", | ||
349 | - "min_buy_number": 1, | ||
350 | - "off_shelves": 0, | ||
351 | - "offline_goods_status": 1, | ||
352 | - "offline_storage_number": 0, | ||
353 | - "offline_storage_status": 1, | ||
354 | - "online_storage_number": 0, | ||
355 | - "product_id": 306601, | ||
356 | - "product_name": "JNBY 复古女装外套风衣", | ||
357 | - "product_skc": "301244", | ||
358 | - "product_skn": "51170925", | ||
359 | - "product_sku": "950949", | ||
360 | - "promotion_flag": "0", | ||
361 | - "promotion_id": "0", | ||
362 | - "real_price": 216.6, | ||
363 | - "real_vip_price": 0, | ||
364 | - "sale_price": 0, | ||
365 | - "sales_price": 228, | ||
366 | - "selected": "Y", | ||
367 | - "shop_id": 20, | ||
368 | - "shopping_cart_goods_id": "65876", | ||
369 | - "shopping_cart_id": "118792348", | ||
370 | - "shopping_key": "2a7729e3e974cfe476e4472a89c13743", | ||
371 | - "size_id": "201", | ||
372 | - "size_name": "L", | ||
373 | - "small_sort_id": "125", | ||
374 | - "storage_number": "2", | ||
375 | - "store_id": 0, | ||
376 | - "supplier_id": 1038, | ||
377 | - "tags": [], | ||
378 | - "uid": "8040155", | ||
379 | - "vip1_price": "0.00", | ||
380 | - "vip2_price": "0.00", | ||
381 | - "vip3_price": "0.00", | ||
382 | - "vip_discount": 1, | ||
383 | - "vip_discount_money": 0, | ||
384 | - "vip_discount_type": "3", | ||
385 | - "vip_price": 0, | ||
386 | - "wareHouseId": 0, | ||
387 | - "yoho_coin_num": "0" | ||
388 | - }, | ||
389 | - { | ||
390 | - "attribute": "1", | ||
391 | - "brand_domain": "JNBY", | ||
392 | - "brand_id": "1026", | ||
393 | - "brand_name": "jnby", | ||
394 | - "bundle_activity_id": 100672, | ||
395 | - "buy_limit": 0, | ||
396 | - "buy_number": "1", | ||
397 | - "buy_type": 2, | ||
398 | - "can_cod_pay": "Y", | ||
399 | - "cn_alphabet": "5C68012", | ||
400 | - "color_id": "8", | ||
401 | - "color_name": "紫色", | ||
402 | - "delay_notice": "", | ||
403 | - "discount_tag": "", | ||
404 | - "expect_arrival_time": "", | ||
405 | - "factory_goods_name": "紫色", | ||
406 | - "fit_promotions": [], | ||
407 | - "get_yoho_coin": "0", | ||
408 | - "goods_id": "394183", | ||
409 | - "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", | ||
410 | - "goods_type": "ordinary", | ||
411 | - "is_advance": "N", | ||
412 | - "is_deposit_advance": "N", | ||
413 | - "is_jit": "Y", | ||
414 | - "is_limited": "N", | ||
415 | - "is_outlets": "N", | ||
416 | - "is_special": "N", | ||
417 | - "last_price": "398.0", | ||
418 | - "last_vip_price": 398, | ||
419 | - "local_buy_number": 0, | ||
420 | - "market_price": 399, | ||
421 | - "max_sort_id": "1", | ||
422 | - "middle_sort_id": "257", | ||
423 | - "min_buy_number": 1, | ||
424 | - "off_shelves": 0, | ||
425 | - "offline_goods_status": 1, | ||
426 | - "offline_storage_number": 0, | ||
427 | - "offline_storage_status": 1, | ||
428 | - "online_storage_number": 0, | ||
429 | - "product_id": 306603, | ||
430 | - "product_name": "JNBY 连帽针织羊毛开衫", | ||
431 | - "product_skc": "301263", | ||
432 | - "product_skn": "51170930", | ||
433 | - "product_sku": "951031", | ||
434 | - "promotion_flag": "0", | ||
435 | - "promotion_id": "0", | ||
436 | - "real_price": 378.1, | ||
437 | - "real_vip_price": 0, | ||
438 | - "sale_price": 0, | ||
439 | - "sales_price": 398, | ||
440 | - "selected": "Y", | ||
441 | - "shop_id": 20, | ||
442 | - "shopping_cart_goods_id": "65874", | ||
443 | - "shopping_cart_id": "118792348", | ||
444 | - "shopping_key": "2a7729e3e974cfe476e4472a89c13743", | ||
445 | - "size_id": "203", | ||
446 | - "size_name": "M", | ||
447 | - "small_sort_id": "258", | ||
448 | - "storage_number": "1", | ||
449 | - "store_id": 0, | ||
450 | - "supplier_id": 1038, | ||
451 | - "tags": [], | ||
452 | - "uid": "8040155", | ||
453 | - "vip1_price": "0.00", | ||
454 | - "vip2_price": "0.00", | ||
455 | - "vip3_price": "0.00", | ||
456 | - "vip_discount": 1, | ||
457 | - "vip_discount_money": 0, | ||
458 | - "vip_discount_type": "3", | ||
459 | - "vip_price": 0, | ||
460 | - "wareHouseId": 0, | ||
461 | - "yoho_coin_num": "0" | ||
462 | - }, | ||
463 | - { | ||
464 | - "attribute": "1", | ||
465 | - "brand_domain": "JNBY", | ||
466 | - "brand_id": "1026", | ||
467 | - "brand_name": "jnby", | ||
468 | - "bundle_activity_id": 100672, | ||
469 | - "buy_limit": 0, | ||
470 | - "buy_number": "1", | ||
471 | - "buy_type": 2, | ||
472 | - "can_cod_pay": "Y", | ||
473 | - "cn_alphabet": "5F024236DaYi/FengYi", | ||
474 | - "color_id": "3", | ||
475 | - "color_name": "灰色", | ||
476 | - "delay_notice": "", | ||
477 | - "discount_tag": "", | ||
478 | - "expect_arrival_time": "", | ||
479 | - "factory_goods_name": "灰色", | ||
480 | - "fit_promotions": [], | ||
481 | - "get_yoho_coin": "0", | ||
482 | - "goods_id": "436831", | ||
483 | - "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", | ||
484 | - "goods_type": "ordinary", | ||
485 | - "is_advance": "N", | ||
486 | - "is_deposit_advance": "N", | ||
487 | - "is_jit": "Y", | ||
488 | - "is_limited": "N", | ||
489 | - "is_outlets": "N", | ||
490 | - "is_special": "N", | ||
491 | - "last_price": "11.0", | ||
492 | - "last_vip_price": 11, | ||
493 | - "local_buy_number": 0, | ||
494 | - "market_price": 1890, | ||
495 | - "max_sort_id": "1", | ||
496 | - "middle_sort_id": "22", | ||
497 | - "min_buy_number": 1, | ||
498 | - "off_shelves": 0, | ||
499 | - "offline_goods_status": 1, | ||
500 | - "offline_storage_number": 0, | ||
501 | - "offline_storage_status": 1, | ||
502 | - "online_storage_number": 0, | ||
503 | - "product_id": 340177, | ||
504 | - "product_name": "JNBY 衬衫领式长款羊毛大衣", | ||
505 | - "product_skc": "326237", | ||
506 | - "product_skn": "51189501", | ||
507 | - "product_sku": "1019324", | ||
508 | - "promotion_flag": "109", | ||
509 | - "promotion_id": "0", | ||
510 | - "real_price": 10.45, | ||
511 | - "real_vip_price": 0, | ||
512 | - "sale_price": 0, | ||
513 | - "sales_price": 11, | ||
514 | - "selected": "Y", | ||
515 | - "shop_id": 20, | ||
516 | - "shopping_cart_goods_id": "65872", | ||
517 | - "shopping_cart_id": "118792348", | ||
518 | - "shopping_key": "2a7729e3e974cfe476e4472a89c13743", | ||
519 | - "size_id": "207", | ||
520 | - "size_name": "S", | ||
521 | - "small_sort_id": "125", | ||
522 | - "storage_number": "111111", | ||
523 | - "store_id": 0, | ||
524 | - "supplier_id": 1038, | ||
525 | - "tags": [], | ||
526 | - "uid": "8040155", | ||
527 | - "vip1_price": "10.45", | ||
528 | - "vip2_price": "9.90", | ||
529 | - "vip3_price": "9.68", | ||
530 | - "vip_discount": 1, | ||
531 | - "vip_discount_money": 0, | ||
532 | - "vip_discount_type": "1", | ||
533 | - "vip_price": 11, | ||
534 | - "wareHouseId": 0, | ||
535 | - "yoho_coin_num": "0" | ||
536 | - }, | ||
537 | - { | ||
538 | - "attribute": "1", | ||
539 | - "brand_domain": "JNBY", | ||
540 | - "brand_id": "1026", | ||
541 | - "brand_name": "jnby", | ||
542 | - "bundle_activity_id": 100672, | ||
543 | - "buy_limit": 0, | ||
544 | - "buy_number": "1", | ||
545 | - "buy_type": 2, | ||
546 | - "can_cod_pay": "Y", | ||
547 | - "cn_alphabet": "5C62156", | ||
548 | - "color_id": "4", | ||
549 | - "color_name": "棕色", | ||
550 | - "delay_notice": "", | ||
551 | - "discount_tag": "", | ||
552 | - "expect_arrival_time": "", | ||
553 | - "factory_goods_name": "棕色", | ||
554 | - "fit_promotions": [], | ||
555 | - "get_yoho_coin": "0", | ||
556 | - "goods_id": "394189", | ||
557 | - "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", | ||
558 | - "goods_type": "ordinary", | ||
559 | - "is_advance": "N", | ||
560 | - "is_deposit_advance": "N", | ||
561 | - "is_jit": "Y", | ||
562 | - "is_limited": "N", | ||
563 | - "is_outlets": "N", | ||
564 | - "is_special": "N", | ||
565 | - "last_price": "208.0", | ||
566 | - "last_vip_price": 208, | ||
567 | - "local_buy_number": 0, | ||
568 | - "market_price": 209, | ||
569 | - "max_sort_id": "1", | ||
570 | - "middle_sort_id": "22", | ||
571 | - "min_buy_number": 1, | ||
572 | - "off_shelves": 0, | ||
573 | - "offline_goods_status": 1, | ||
574 | - "offline_storage_number": 0, | ||
575 | - "offline_storage_status": 1, | ||
576 | - "online_storage_number": 0, | ||
577 | - "product_id": 306607, | ||
578 | - "product_name": "JNBY 蕾丝拼接复古夹克", | ||
579 | - "product_skc": "301239", | ||
580 | - "product_skn": "51170924", | ||
581 | - "product_sku": "950926", | ||
582 | - "promotion_flag": "0", | ||
583 | - "promotion_id": "0", | ||
584 | - "real_price": 197.6, | ||
585 | - "real_vip_price": 0, | ||
586 | - "sale_price": 0, | ||
587 | - "sales_price": 208, | ||
588 | - "selected": "Y", | ||
589 | - "shop_id": 20, | ||
590 | - "shopping_cart_goods_id": "65870", | ||
591 | - "shopping_cart_id": "118792348", | ||
592 | - "shopping_key": "2a7729e3e974cfe476e4472a89c13743", | ||
593 | - "size_id": "201", | ||
594 | - "size_name": "L", | ||
595 | - "small_sort_id": "125", | ||
596 | - "storage_number": "1", | ||
597 | - "store_id": 0, | ||
598 | - "supplier_id": 1038, | ||
599 | - "tags": [], | ||
600 | - "uid": "8040155", | ||
601 | - "vip1_price": "0.00", | ||
602 | - "vip2_price": "0.00", | ||
603 | - "vip3_price": "0.00", | ||
604 | - "vip_discount": 1, | ||
605 | - "vip_discount_money": 0, | ||
606 | - "vip_discount_type": "3", | ||
607 | - "vip_price": 0, | ||
608 | - "wareHouseId": 0, | ||
609 | - "yoho_coin_num": "0" | ||
610 | - } | ||
611 | - ], | ||
612 | - "pool_buy_number": "1",//套餐商品池购物数量 | ||
613 | - "pool_id": 100672,//套餐商品池id | ||
614 | - "pool_title": "21212121212121",//套餐商品标题 | ||
615 | - "pool_type": 3,//商品池类型 | ||
616 | - "selected": "Y"//是否选中,Y 是,N 是 | ||
617 | - }, | ||
618 | - { | ||
619 | - "goods_list": [ | ||
620 | - { | ||
621 | - "attribute": "1", | ||
622 | - "brand_domain": "Korakublue", | ||
623 | - "brand_id": "196", | ||
624 | - "brand_name": "korakublue", | ||
625 | - "bundle_activity_id": 0, | ||
626 | - "buy_limit": 0, | ||
627 | - "buy_number": "1", | ||
628 | - "buy_type": 2, | ||
629 | - "can_cod_pay": "Y", | ||
630 | - "cn_alphabet": "KORAKUBLUEL186DanNingJiaMianPinJieKeChaiXieXiuHouDaYi", | ||
631 | - "color_id": "1", | ||
632 | - "color_name": "白色", | ||
633 | - "delay_notice": "", | ||
634 | - "discount_tag": "V", | ||
635 | - "expect_arrival_time": "", | ||
636 | - "factory_goods_name": "白色", | ||
637 | - "fit_promotions": [], | ||
638 | - "get_yoho_coin": "0", | ||
639 | - "goods_id": "439789", | ||
640 | - "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", | ||
641 | - "goods_type": "ordinary", | ||
642 | - "is_advance": "N", | ||
643 | - "is_deposit_advance": "N", | ||
644 | - "is_jit": "N", | ||
645 | - "is_limited": "N", | ||
646 | - "is_outlets": "N", | ||
647 | - "is_special": "N", | ||
648 | - "last_price": "9.68", | ||
649 | - "last_vip_price": 9.68, | ||
650 | - "local_buy_number": 0, | ||
651 | - "market_price": 1139, | ||
652 | - "max_sort_id": "1", | ||
653 | - "middle_sort_id": "20", | ||
654 | - "min_buy_number": 1, | ||
655 | - "off_shelves": 0, | ||
656 | - "offline_goods_status": 1, | ||
657 | - "offline_storage_number": 0, | ||
658 | - "offline_storage_status": 1, | ||
659 | - "online_storage_number": 0, | ||
660 | - "product_id": 342719, | ||
661 | - "product_name": "Korakublue 丹宁拼接可拆卸袖棉衣", | ||
662 | - "product_skc": "328133", | ||
663 | - "product_skn": "51191159", | ||
664 | - "product_sku": "1024840", | ||
665 | - "promotion_flag": "0", | ||
666 | - "promotion_id": "0", | ||
667 | - "real_price": 9.68, | ||
668 | - "real_vip_price": 9.68, | ||
669 | - "sale_price": 0, | ||
670 | - "sales_price": 11, | ||
671 | - "selected": "N", | ||
672 | - "shop_id": 1642, | ||
673 | - "shopping_cart_goods_id": "65868", | ||
674 | - "shopping_cart_id": "118792348", | ||
675 | - "shopping_key": "2a7729e3e974cfe476e4472a89c13743", | ||
676 | - "size_id": "201", | ||
677 | - "size_name": "L", | ||
678 | - "small_sort_id": "123", | ||
679 | - "storage_number": "2", | ||
680 | - "store_id": 0, | ||
681 | - "str_subtotal": "¥9.68", | ||
682 | - "subtotal": 9.68, | ||
683 | - "supplier_id": 0, | ||
684 | - "tags": [], | ||
685 | - "uid": "8040155", | ||
686 | - "vip1_price": "10.45", | ||
687 | - "vip2_price": "9.90", | ||
688 | - "vip3_price": "9.68", | ||
689 | - "vip_discount": 0.88, | ||
690 | - "vip_discount_money": 1.32, | ||
691 | - "vip_discount_type": "1", | ||
692 | - "vip_price": 11, | ||
693 | - "wareHouseId": 0, | ||
694 | - "yoho_coin_num": "0" | ||
695 | - } | ||
696 | - ], | ||
697 | - "pool_buy_number": "1", | ||
698 | - "pool_id": 0, | ||
699 | - "pool_title": "korakublue", | ||
700 | - "pool_type": 1, | ||
701 | - "selected": "N" | ||
702 | - } | ||
703 | - ], | ||
704 | - "match_gift_ids": [], | ||
705 | - "off_shelves_goods_list": [], | ||
706 | - "promotion_info": [ | ||
707 | - { | ||
708 | - "cutdown_amount": 42.25, | ||
709 | - "promotion_id": 0, | ||
710 | - "promotion_title": "21212121212121", | ||
711 | - "promotion_type": "bundle-100672" | ||
712 | - }, | ||
713 | - { | ||
714 | - "cutdown_amount": 10, | ||
715 | - "promotion_id": 0, | ||
716 | - "promotion_title": "满¥399免运费", | ||
717 | - "promotion_type": "FreeShippingCost" | ||
718 | - } | ||
719 | - ], | ||
720 | - "shopping_cart_data": { | ||
721 | - "discount_amount": 42.25, | ||
722 | - "fast_shopping_cost": 0, | ||
723 | - "gain_yoho_coin": 0, | ||
724 | - "goods_count": 8, | ||
725 | - "has_invalid_goods": 0, | ||
726 | - "is_multi_package": "N", | ||
727 | - "last_order_amount": 1258.75, | ||
728 | - "offline_goods_count": 0, | ||
729 | - "online_goods_count": 0, | ||
730 | - "order_amount": 1301, | ||
731 | - "package_list": [], | ||
732 | - "promotion_formula": "总计¥1258.75=商品金额¥1301.00-活动金额¥42.25", | ||
733 | - "promotion_formula_list": [ | ||
734 | - { | ||
735 | - "promotion": "商品金额", | ||
736 | - "promotion_amount": "¥1301.00" | ||
737 | - }, | ||
738 | - { | ||
739 | - "promotion": "活动金额", | ||
740 | - "promotion_amount": "-¥42.25" | ||
741 | - } | ||
742 | - ], | ||
743 | - "remain_time": 0, | ||
744 | - "selected_goods_count": 6, | ||
745 | - "shipping_cost": 0, | ||
746 | - "str_discount_amount": "¥42.25", | ||
747 | - "str_order_amount": "¥1301.00" | ||
748 | - }, | ||
749 | - "sold_out_goods_list": [], | ||
750 | - "sold_out_goods_pool": [] | ||
751 | - } | ||
752 | - }, | ||
753 | - "md5": "e2c62030c5404412b17e56bbd90f39de", | ||
754 | - "message": "cart goods list." | ||
755 | - } | 64 | + |
756 | ``` | 65 | ``` |
757 | 66 | ||
758 | 67 | ||
@@ -770,19 +79,19 @@ | @@ -770,19 +79,19 @@ | ||
770 | ### 请求参数 | 79 | ### 请求参数 |
771 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | 80 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | |
772 | | :-- | :-- | :-- | :-- | :-- | :-- | | 81 | | :-- | :-- | :-- | :-- | :-- | :-- | |
773 | -| method | string | 否 | app.Shopping.selectedAndQryCart | | | | ||
774 | -| uid | int | 否 | 5772257 | | | | ||
775 | -| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | | | 82 | +| method | string | 是 | app.Shopping.selectedAndQryCart | | | |
83 | +| uid | int | 是 | 5772257 | | | | ||
84 | +| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | | | ||
776 | | product_sku_list | string | 是 | [{"product_sku":131874,"buy_number":2,"promotion_id":0,"activity_id":12,"selected":"N"}] | | | | 85 | | product_sku_list | string | 是 | [{"product_sku":131874,"buy_number":2,"promotion_id":0,"activity_id":12,"selected":"N"}] | | | |
777 | 86 | ||
778 | ### product_sku_list参数 | 87 | ### product_sku_list参数 |
779 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | 88 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | |
780 | | :-- | :-- | :-- | :-- | :-- | :-- | | 89 | | :-- | :-- | :-- | :-- | :-- | :-- | |
781 | -| product_sku | int | 否 | | | | | ||
782 | -| buy_number | int | 否 | 数量 | | | | ||
783 | -| promotion_id | int | 否 | 促销id | | | | ||
784 | -| activity_id | int | 否 | 活动id | | | | ||
785 | -| selected | string | 否 | 是否选中,Y 是,N 否 | | | | 90 | +| product_sku | int | 是 | | | | |
91 | +| buy_number | int | 是| 数量 | | | | ||
92 | +| promotion_id | int | 是 | 促销id | | | | ||
93 | +| activity_id | int | 是 | 活动id | | | | ||
94 | +| selected | string | 是 | 是否选中,Y 是,N 否 | | | | ||
786 | 95 | ||
787 | ### 正常返回结果 | 96 | ### 正常返回结果 |
788 | ```json | 97 | ```json |
@@ -803,17 +112,17 @@ | @@ -803,17 +112,17 @@ | ||
803 | ### 请求参数 | 112 | ### 请求参数 |
804 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | 113 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | |
805 | | :-- | :-- | :-- | :-- | :-- | :-- | | 114 | | :-- | :-- | :-- | :-- | :-- | :-- | |
806 | -| method | string | 否 | app.Shopping.removeAndQryCart | | | | ||
807 | -| uid | int | 否 | 5772257 | | | | ||
808 | -| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | | | 115 | +| method | string | 是 | app.Shopping.removeAndQryCart | | | |
116 | +| uid | int | 是 | 5772257 | | | | ||
117 | +| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | | | ||
809 | | product_sku_list | string | 是 | [{"product_sku":131874,"buy_number":2,"promotion_id":0,"activity_id":12}] | | | | 118 | | product_sku_list | string | 是 | [{"product_sku":131874,"buy_number":2,"promotion_id":0,"activity_id":12}] | | | |
810 | 119 | ||
811 | ### product_sku_list参数 | 120 | ### product_sku_list参数 |
812 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | 121 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | |
813 | | :-- | :-- | :-- | :-- | :-- | :-- | | 122 | | :-- | :-- | :-- | :-- | :-- | :-- | |
814 | -| product_sku | int | 否 | | | | | ||
815 | -| buy_number | int | 否 | 数量 | | | | ||
816 | -| promotion_id | int | 否 | 促销id | | | | 123 | +| product_sku | int | 是 | | | | |
124 | +| buy_number | int | 是 | 数量 | | | | ||
125 | +| promotion_id | int | 是 | 促销id | | | | ||
817 | | activity_id | int | 是 | 活动id | | | | 126 | | activity_id | int | 是 | 活动id | | | |
818 | 127 | ||
819 | ### 正常返回结果 | 128 | ### 正常返回结果 |
@@ -836,10 +145,10 @@ | @@ -836,10 +145,10 @@ | ||
836 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | 145 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | |
837 | | :-- | :-- | :-- | :-- | :-- | :-- | | 146 | | :-- | :-- | :-- | :-- | :-- | :-- | |
838 | | method | string | 是 | app.Shopping.incrBundle | | | | 147 | | method | string | 是 | app.Shopping.incrBundle | | | |
839 | -| uid | int | 否 | 5772257 | |用户id | | ||
840 | -| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | 购物车key| | ||
841 | -| increase_number | int | 否 | 1 | 1 | 增加数量 | | ||
842 | -| activity_id | int | 否 | | | 活动id | | 148 | +| uid | int | 是 | 5772257 | |用户id | |
149 | +| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | 购物车key| | ||
150 | +| increase_number | int | 是 | 1 | 1 | 增加数量 | | ||
151 | +| activity_id | int | 是 | | | 活动id | | ||
843 | 152 | ||
844 | ### 正常返回结果 | 153 | ### 正常返回结果 |
845 | ```json | 154 | ```json |
@@ -870,10 +179,10 @@ | @@ -870,10 +179,10 @@ | ||
870 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | 179 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | |
871 | | :-- | :-- | :-- | :-- | :-- | :-- | | 180 | | :-- | :-- | :-- | :-- | :-- | :-- | |
872 | | method | string | 是 | app.Shopping.decrBundle | | | | 181 | | method | string | 是 | app.Shopping.decrBundle | | | |
873 | -| uid | int | 否 | 5772257 | |用户id | | ||
874 | -| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | 购物车key| | ||
875 | -| decrease_number | int | 否 | 1 | 1 | 减少数量 | | ||
876 | -| activity_id | int | 否 | | | 活动id | | 182 | +| uid | int | 是 | 5772257 | |用户id | |
183 | +| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | 购物车key| | ||
184 | +| decrease_number | int | 是 | 1 | 1 | 减少数量 | | ||
185 | +| activity_id | int | 是 | | | 活动id | | ||
877 | 186 | ||
878 | ### 正常返回结果 | 187 | ### 正常返回结果 |
879 | ```json | 188 | ```json |
@@ -889,39 +198,6 @@ | @@ -889,39 +198,6 @@ | ||
889 | } | 198 | } |
890 | ``` | 199 | ``` |
891 | 200 | ||
892 | -### 更换套餐中的商品 | ||
893 | - | ||
894 | -### 接口说明 | ||
895 | - | ||
896 | -| 接口说明 | 接口说明 | | ||
897 | -| :-- | -----: | | ||
898 | -| 接口名 | app.Shopping.swapBundle | | ||
899 | -| 接口说明 | 更换套餐中的商品 | | ||
900 | -| http请求方式 | POST | | ||
901 | - | ||
902 | -### 请求参数 | ||
903 | -| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | ||
904 | -| :-- | :-- | :-- | :-- | :-- | :-- | | ||
905 | -| method | string | 是 | app.Shopping.swapBundle | | | | ||
906 | -| uid | int | 否 | 5772257 | | | | ||
907 | -| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | | | ||
908 | -| activity_id | int | 否 | 1234 | | | | ||
909 | -| swap_data | string | 是 | [{"new_product_sku":"886593","old_product_sku":"131874"}] | | 更换商品信息 | | ||
910 | - | ||
911 | -### 正常返回结果 | ||
912 | -```json | ||
913 | -{ | ||
914 | - "alg": "SALT_MD5", | ||
915 | - "code": 200, | ||
916 | - "data": { | ||
917 | - "goods_count": "7", //套餐商品的更换数量 | ||
918 | - "shopping_key": "c36408a268e9b9418189d9a71967379e" //shopping_key | ||
919 | - }, | ||
920 | - "md5": "f9a4a776eb18b6d62a7b3ba992fa6041", | ||
921 | - "message": "操作成功" | ||
922 | -} | ||
923 | -``` | ||
924 | - | ||
925 | 201 | ||
926 | ### 移到商品到收藏夹并查询购物车 | 202 | ### 移到商品到收藏夹并查询购物车 |
927 | 203 | ||
@@ -954,9 +230,9 @@ | @@ -954,9 +230,9 @@ | ||
954 | ### 请求参数 | 230 | ### 请求参数 |
955 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | 231 | | 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | |
956 | | :-- | :-- | :-- | :-- | :-- | :-- | | 232 | | :-- | :-- | :-- | :-- | :-- | :-- | |
957 | -| method | string | 否 | app.Shopping.swapGift | | | | ||
958 | -| uid | int | 否 | 5772257 | | | | ||
959 | -| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | | | 233 | +| method | string | 是 | app.Shopping.swapGift | | | |
234 | +| uid | int | 是 | 5772257 | | | | ||
235 | +| shopping_key | string | 是 | c36408a268e9b9418189d9a71967379e | | | | ||
960 | | promotion_id | int | 是 | 111111 | | | | 236 | | promotion_id | int | 是 | 111111 | | | |
961 | | new_product_skn | int | 是 | 1 | | | | 237 | | new_product_skn | int | 是 | 1 | | | |
962 | | new_product_sku | int | 是 | 1 | | | | 238 | | new_product_sku | int | 是 | 1 | | | |
-
Please register or login to post a comment