Update newShoppingCart.md
Showing
1 changed file
with
85 additions
and
1 deletions
@@ -21,7 +21,6 @@ | @@ -21,7 +21,6 @@ | ||
21 | 21 | ||
22 | ### 正常返回结果 | 22 | ### 正常返回结果 |
23 | ```json | 23 | ```json |
24 | -{ | ||
25 | { | 24 | { |
26 | "alg": "SALT_MD5", | 25 | "alg": "SALT_MD5", |
27 | "code": 200, | 26 | "code": 200, |
@@ -842,4 +841,89 @@ | @@ -842,4 +841,89 @@ | ||
842 | "md5": "e2c62030c5404412b17e56bbd90f39de", | 841 | "md5": "e2c62030c5404412b17e56bbd90f39de", |
843 | "message": "cart goods list." | 842 | "message": "cart goods list." |
844 | } | 843 | } |
844 | +``` | ||
845 | + | ||
846 | + | ||
847 | +### c赠品、加价购 | ||
848 | + | ||
849 | +### 接口说明 | ||
850 | + | ||
851 | +| 接口说明 | 接口说明 | | ||
852 | +| :-- | -----: | | ||
853 | +| 接口名 | app.Shopping.swapGift | | ||
854 | +| 接口说明 | 更换赠品、加价购 | | ||
855 | +| http请求方式 | GET/POST | | ||
856 | + | ||
857 | +### 请求参数 | ||
858 | +| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | ||
859 | +| :-- | :-- | :-- | :-- | :-- | :-- | | ||
860 | +| method | string | 是 | app.Shopping.swapGift | | | | ||
861 | +| uid | int | 否 | 5772257 | | | | ||
862 | +| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | | | ||
863 | +| promotion_id | int | 是 | 111111 | | | | ||
864 | +| new_product_sku | int | 是 | 1 | | | | ||
865 | +| old_product_sku | int | 是 | 2 | | | | ||
866 | +| client_type | string | | web | web | | | ||
867 | + | ||
868 | +### 正常返回结果 | ||
869 | +```json | ||
870 | + { | ||
871 | + "alg": "SALT_MD5", | ||
872 | + "code": 200, | ||
873 | + "data": { | ||
874 | + "shopping_key":"xxxxx", | ||
875 | + "goods_count":1 //0表示失败,大于0表示成功 | ||
876 | + }, | ||
877 | + "md5": "e2c62030c5404412b17e56bbd90f39de", | ||
878 | + "message": "cart goods list." | ||
879 | + } | ||
880 | +``` | ||
881 | + | ||
882 | +### 查询赠品、加价购促销商品列表 | ||
883 | + | ||
884 | +### 接口说明 | ||
885 | + | ||
886 | +| 接口说明 | 接口说明 | | ||
887 | +| :-- | -----: | | ||
888 | +| 接口名 | app.Shopping.queryPromotionGift | | ||
889 | +| 接口说明 | 查询赠品、加价购促销商品列表 | | ||
890 | +| http请求方式 | GET/POST | | ||
891 | + | ||
892 | +### 请求参数 | ||
893 | +| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | ||
894 | +| :-- | :-- | :-- | :-- | :-- | :-- | | ||
895 | +| method | string | 是 | app.Shopping.queryPromotionGift | | | | ||
896 | +| uid | int | 否 | 5772257 | | | | ||
897 | +| promotion_id | int | 是 | 111111 | | | | ||
898 | +| client_type | string | 是 | web | web | | | ||
899 | + | ||
900 | +### 正常返回结果 | ||
901 | +```json | ||
902 | +{ | ||
903 | + "alg": "SALT_MD5", | ||
904 | + "code": 200, | ||
905 | + "data": { | ||
906 | + "gift_price": 0, | ||
907 | + //促销加价"goods_list": [ | ||
908 | + //商品列表{ | ||
909 | + "cn_alphabet": "PANDAMADEHOTRODP12062", | ||
910 | + "goods_id": "28626", | ||
911 | + "goods_images": "http://img12.static.yhbimg.com/goodsimg/2016/09/26/19/02b8748784178e59fd8d285a5efa0c4812.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
912 | + "last_price": 0, | ||
913 | + "market_price": 289, | ||
914 | + "product_id": 19858, | ||
915 | + "product_name": "BLACKJACK民族风骷髅拉花毛衣", | ||
916 | + "product_skn": 50023801, | ||
917 | + "sales_price": 1, | ||
918 | + "storage_number": 250 | ||
919 | + } | ||
920 | + ], | ||
921 | + "max_select_number": "1", | ||
922 | + //可选个数"promotion_id": 9082, | ||
923 | + //促销id"promotion_title": "线下店赠品勿动", | ||
924 | + //促销名称"promotion_type": "Gift" | ||
925 | + }, | ||
926 | + "md5": "e2c62030c5404412b17e56bbd90f39de", | ||
927 | + "message": "cart goods list." | ||
928 | +} | ||
845 | ``` | 929 | ``` |
-
Please register or login to post a comment