|
@@ -88,9 +88,9 @@ class Article extends Model
|
|
|
{
|
|
|
$model = new self;
|
|
|
$model =$model->where('hidedata',0)->where('status',1);
|
|
|
- if(isset($where['cid']) && $where['cid']>0) $model->where('cid',$where['cid']);
|
|
|
- if(isset($where['is_hot']) && $where['is_hot']==1) $model->where('is_hotdata',$where['is_hot']);
|
|
|
- if(isset($where['is_rec']) && $where['is_rec']==1) $model->where('is_recdata',$where['is_rec']);
|
|
|
+ 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']);
|
|
|
if(isset($where['ifyid']) && $where['ifyid']>0)
|
|
|
{
|
|
|
$ids = get_all_categories(ArticleCategory::lst(['cid'=>$where['cid']]));
|