|
@@ -88,6 +88,7 @@ class Article extends Model
|
|
|
{
|
|
|
$model = new self;
|
|
|
$model =$model->where('hidedata',0)->where('status',1);
|
|
|
+ dump($where);
|
|
|
if(isset($where['cid']) && $where['cid']>0) $model = $model->where('cid',$where['cid']);
|
|
|
if(isset($where['is_hot']) && $where['is_hot']==1) $model = $model->where('is_hotdata',$where['is_hot']);
|
|
|
if(isset($where['is_rec']) && $where['is_rec']==1) $model = $model->where('is_recdata',$where['is_rec']);
|