作者 anyv
1 个管道 的构建 通过 耗费 0 秒

商品详情页

@@ -29,7 +29,7 @@ class GoodsdetailsController extends WeChatBaseController{ @@ -29,7 +29,7 @@ class GoodsdetailsController extends WeChatBaseController{
29 $data['det_img'] = json_decode($data['det_img'],true); 29 $data['det_img'] = json_decode($data['det_img'],true);
30 $this -> assign('det_img',$data['det_img']); 30 $this -> assign('det_img',$data['det_img']);
31 $this -> assign('data',$data); 31 $this -> assign('data',$data);
32 - $data_label = Db::name('label') -> alias('a') -> field("a.*,b.goods_id,b.label_id") -> join('','a.id=b.label_id','LEFT') -> where("b.goods_id = ".$goods_id['goods_id']) -> select(); 32 + $data_label = Db::name('label') -> alias('a') -> field("a.*,b.goods_id,b.label_id") -> join('goods_label','a.id=b.label_id','LEFT') -> where("b.goods_id = ".$goods_id['goods_id']) -> select();
33 $this -> assign('data_label',$data_label); 33 $this -> assign('data_label',$data_label);
34 return $this -> fetch(); 34 return $this -> fetch();
35 35