...
|
...
|
@@ -100,6 +100,7 @@ class Cars extends Api |
|
|
"goods_number": 2,//商品数量
|
|
|
"name": "MONENT 动感系列动感系列动感系列",//商品名称
|
|
|
"introduce": "轻波款,为客厅缀上霞光淡雾"//商品简介
|
|
|
"stock": "12"//商品库存
|
|
|
},
|
|
|
{
|
|
|
"id": 2,
|
...
|
...
|
@@ -120,7 +121,7 @@ class Cars extends Api |
|
|
->alias('c')
|
|
|
->join('goods g','c.g_id = g.id','LEFT')
|
|
|
->where(['c.uid'=>$this->uid])
|
|
|
->field('c.id,c.g_id goods_id,c.price,c.goods_number,c.style,g.name,g.image,g.introduce')
|
|
|
->field('c.id,c.g_id goods_id,c.price,c.goods_number,c.style,g.name,g.image,g.stock,g.introduce')
|
|
|
->useSoftDelete('g.deletetime')
|
|
|
->select();
|
|
|
$total_price = 0;
|
...
|
...
|
|