正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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 |
-
请 注册 或 登录 后发表评论