...
|
...
|
@@ -21,7 +21,6 @@ |
|
|
|
|
|
### 正常返回结果
|
|
|
```json
|
|
|
{
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
...
|
...
|
@@ -842,4 +841,89 @@ |
|
|
"md5": "e2c62030c5404412b17e56bbd90f39de",
|
|
|
"message": "cart goods list."
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
### c赠品、加价购
|
|
|
|
|
|
### 接口说明
|
|
|
|
|
|
| 接口说明 | 接口说明 |
|
|
|
| :-- | -----: |
|
|
|
| 接口名 | app.Shopping.swapGift |
|
|
|
| 接口说明 | 更换赠品、加价购 |
|
|
|
| http请求方式 | GET/POST |
|
|
|
|
|
|
### 请求参数
|
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| method | string | 是 | app.Shopping.swapGift | | |
|
|
|
| uid | int | 否 | 5772257 | | |
|
|
|
| shopping_key | string | 否 | c36408a268e9b9418189d9a71967379e | | |
|
|
|
| promotion_id | int | 是 | 111111 | | |
|
|
|
| new_product_sku | int | 是 | 1 | | |
|
|
|
| old_product_sku | int | 是 | 2 | | |
|
|
|
| client_type | string | | web | web | |
|
|
|
|
|
|
### 正常返回结果
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"shopping_key":"xxxxx",
|
|
|
"goods_count":1 //0表示失败,大于0表示成功
|
|
|
},
|
|
|
"md5": "e2c62030c5404412b17e56bbd90f39de",
|
|
|
"message": "cart goods list."
|
|
|
}
|
|
|
```
|
|
|
|
|
|
### 查询赠品、加价购促销商品列表
|
|
|
|
|
|
### 接口说明
|
|
|
|
|
|
| 接口说明 | 接口说明 |
|
|
|
| :-- | -----: |
|
|
|
| 接口名 | app.Shopping.queryPromotionGift |
|
|
|
| 接口说明 | 查询赠品、加价购促销商品列表 |
|
|
|
| http请求方式 | GET/POST |
|
|
|
|
|
|
### 请求参数
|
|
|
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
|
|
|
| :-- | :-- | :-- | :-- | :-- | :-- |
|
|
|
| method | string | 是 | app.Shopping.queryPromotionGift | | |
|
|
|
| uid | int | 否 | 5772257 | | |
|
|
|
| promotion_id | int | 是 | 111111 | | |
|
|
|
| client_type | string | 是 | web | web | |
|
|
|
|
|
|
### 正常返回结果
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"gift_price": 0,
|
|
|
//促销加价"goods_list": [
|
|
|
//商品列表{
|
|
|
"cn_alphabet": "PANDAMADEHOTRODP12062",
|
|
|
"goods_id": "28626",
|
|
|
"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",
|
|
|
"last_price": 0,
|
|
|
"market_price": 289,
|
|
|
"product_id": 19858,
|
|
|
"product_name": "BLACKJACK民族风骷髅拉花毛衣",
|
|
|
"product_skn": 50023801,
|
|
|
"sales_price": 1,
|
|
|
"storage_number": 250
|
|
|
}
|
|
|
],
|
|
|
"max_select_number": "1",
|
|
|
//可选个数"promotion_id": 9082,
|
|
|
//促销id"promotion_title": "线下店赠品勿动",
|
|
|
//促销名称"promotion_type": "Gift"
|
|
|
},
|
|
|
"md5": "e2c62030c5404412b17e56bbd90f39de",
|
|
|
"message": "cart goods list."
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|