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

984

@@ -33,7 +33,7 @@ class GoodsdetailsController extends WeChatBaseController{ @@ -33,7 +33,7 @@ class GoodsdetailsController extends WeChatBaseController{
33 $this -> assign('data_label',$data_label); 33 $this -> assign('data_label',$data_label);
34 if($data['type'] == 1){ 34 if($data['type'] == 1){
35 //相关推荐 35 //相关推荐
36 - $data_recomm = Db::name('goods') -> where("classify_id =".$data['classify_id']." and a.is_out = 1 and type = 1") -> limit(3) -> select(); 36 + $data_recomm = Db::name('goods') -> where("classify_id =".$data['classify_id']." and is_out = 1 and type = 1") -> limit(3) -> select();
37 $this -> assign('data_recomm',$data_recomm); 37 $this -> assign('data_recomm',$data_recomm);
38 $this -> assign('is_recomm',1); 38 $this -> assign('is_recomm',1);
39 }else{ 39 }else{