正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
@@ -137,10 +137,11 @@ class Order extends Api | @@ -137,10 +137,11 @@ class Order extends Api | ||
137 | 137 | ||
138 | /** | 138 | /** |
139 | * @ApiTitle (下单页面) | 139 | * @ApiTitle (下单页面) |
140 | - * @ApiSummary ([{goods_id:22 goods_sku_id:106 number:2} {goods_id:23 goods_sku_id:66 number:2}]) | 140 | + * @ApiSummary ([{cart_id:113 goods_id:22 goods_sku_id:106 number:2} {cart_id:114 goods_id:23 goods_sku_id:66 number:2}]) |
141 | * @ApiMethod (POST) | 141 | * @ApiMethod (POST) |
142 | * @ApiHeaders (name=token, type=string, required=true, description="请求的Token") | 142 | * @ApiHeaders (name=token, type=string, required=true, description="请求的Token") |
143 | * @ApiParams (name="data_json", type="string", required=true, description="下单的商品json数据") | 143 | * @ApiParams (name="data_json", type="string", required=true, description="下单的商品json数据") |
144 | + * @ApiParams (name="cart_id", type="integer", required=false, description="购物车id 此值不传 json数组注释用") | ||
144 | * @ApiParams (name="goods_id", type="integer", required=false, description="商品id 此值不传 json数组注释用") | 145 | * @ApiParams (name="goods_id", type="integer", required=false, description="商品id 此值不传 json数组注释用") |
145 | * @ApiParams (name="goods_sku_id", type="integer", required=false, description="规格id 此值不传 json数组注释用") | 146 | * @ApiParams (name="goods_sku_id", type="integer", required=false, description="规格id 此值不传 json数组注释用") |
146 | * @ApiParams (name="number", type="integer", required=false, description="购买数量 此值不传 json数组注释用") | 147 | * @ApiParams (name="number", type="integer", required=false, description="购买数量 此值不传 json数组注释用") |
@@ -150,6 +151,7 @@ class Order extends Api | @@ -150,6 +151,7 @@ class Order extends Api | ||
150 | 'data': | 151 | 'data': |
151 | "list": [ | 152 | "list": [ |
152 | { | 153 | { |
154 | + "cart_id": 113, 购物车id | ||
153 | "goods_id": 22, 商品id | 155 | "goods_id": 22, 商品id |
154 | "goods_name": "Mate 20 华为 HUAWEI ", 商品名称 | 156 | "goods_name": "Mate 20 华为 HUAWEI ", 商品名称 |
155 | "spec_type": "20", 20多规格10单规格 | 157 | "spec_type": "20", 20多规格10单规格 |
@@ -160,6 +162,7 @@ class Order extends Api | @@ -160,6 +162,7 @@ class Order extends Api | ||
160 | "image_text": "", 图片 | 162 | "image_text": "", 图片 |
161 | }, | 163 | }, |
162 | { | 164 | { |
165 | + "cart_id": 114, | ||
163 | "goods_id": 23, | 166 | "goods_id": 23, |
164 | "goods_name": "MacBook Pro 13寸", | 167 | "goods_name": "MacBook Pro 13寸", |
165 | "spec_type": "20", | 168 | "spec_type": "20", |
@@ -208,6 +211,7 @@ class Order extends Api | @@ -208,6 +211,7 @@ class Order extends Api | ||
208 | $goods['sku_name'] = implode(' ',$sku_name); //规格名 | 211 | $goods['sku_name'] = implode(' ',$sku_name); //规格名 |
209 | } | 212 | } |
210 | $goods['number'] = $value['number']; | 213 | $goods['number'] = $value['number']; |
214 | + $goods['cart_id'] = $value['cart_id']; | ||
211 | $goods_array[] = $goods; | 215 | $goods_array[] = $goods; |
212 | $sum_price = bcadd($sum_price,bcmul($sku['goods_price'],$value['number'],2),2); | 216 | $sum_price = bcadd($sum_price,bcmul($sku['goods_price'],$value['number'],2),2); |
213 | } | 217 | } |
-
请 注册 或 登录 后发表评论