作者 jinglong
1 个管道 的构建 通过 耗费 5 秒

修改购物车列表

... ... @@ -121,7 +121,7 @@ class Cars extends Api
if($this->request->isGet()){
$res = Db::name('car')
->alias('c')
->join('goods g','c.g_id = g.id','LEFT')
->join('goods g','c.g_id = g.id')
->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.style g_style,g.stock,g.introduce')
->useSoftDelete('g.deletetime')
... ...