|
@@ -150,8 +150,8 @@ class ShopCar extends Api |
|
@@ -150,8 +150,8 @@ class ShopCar extends Api |
150
|
|
150
|
|
151
|
/**
|
151
|
/**
|
152
|
* 购物车接口
|
152
|
* 购物车接口
|
153
|
- * @ApiTitle (购物车列表)
|
|
|
154
|
- * @ApiSummary (购物车列表)
|
153
|
+ * @ApiTitle (购物车列表-有更改)
|
|
|
154
|
+ * @ApiSummary (购物车列表-有更改)
|
155
|
* @ApiMethod (POST)
|
155
|
* @ApiMethod (POST)
|
156
|
* @ApiRoute (/api/Shop_Car/ShopcarList)
|
156
|
* @ApiRoute (/api/Shop_Car/ShopcarList)
|
157
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
157
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
@@ -172,7 +172,7 @@ class ShopCar extends Api |
|
@@ -172,7 +172,7 @@ class ShopCar extends Api |
172
|
->where('a.user_id', $UserId)
|
172
|
->where('a.user_id', $UserId)
|
173
|
->order('a.id desc')
|
173
|
->order('a.id desc')
|
174
|
->join('goods g', 'g.id=a.Goods_id')
|
174
|
->join('goods g', 'g.id=a.Goods_id')
|
175
|
- ->field('a.id,g.id as Goods_id,g.image,g.title,g.price,g.delete_price,a.num')
|
175
|
+ ->field('a.id,g.id as Goods_id,g.image,g.title,g.price,g.delete_price,a.num,g.speci')
|
176
|
->select();
|
176
|
->select();
|
177
|
$List = [];
|
177
|
$List = [];
|
178
|
if (!empty($Array)) {
|
178
|
if (!empty($Array)) {
|
|
@@ -184,6 +184,7 @@ class ShopCar extends Api |
|
@@ -184,6 +184,7 @@ class ShopCar extends Api |
184
|
$List[$k]['price'] = $v['price'];
|
184
|
$List[$k]['price'] = $v['price'];
|
185
|
$List[$k]['delete_price'] = $v['delete_price'];
|
185
|
$List[$k]['delete_price'] = $v['delete_price'];
|
186
|
$List[$k]['num'] = $v['num'];
|
186
|
$List[$k]['num'] = $v['num'];
|
|
|
187
|
+ $List[$k]['speci'] = $v['speci'];
|
187
|
}
|
188
|
}
|
188
|
}
|
189
|
}
|
189
|
$this->success('成功', $List);
|
190
|
$this->success('成功', $List);
|