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