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