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

修改购物车列表

@@ -121,7 +121,7 @@ class Cars extends Api @@ -121,7 +121,7 @@ class Cars extends Api
121 if($this->request->isGet()){ 121 if($this->request->isGet()){
122 $res = Db::name('car') 122 $res = Db::name('car')
123 ->alias('c') 123 ->alias('c')
124 - ->join('goods g','c.g_id = g.id','LEFT') 124 + ->join('goods g','c.g_id = g.id')
125 ->where(['c.uid'=>$this->uid]) 125 ->where(['c.uid'=>$this->uid])
126 ->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') 126 ->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')
127 ->useSoftDelete('g.deletetime') 127 ->useSoftDelete('g.deletetime')