zxhxx 3 年之前
父节点
当前提交
786d98fa5d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      application/common/model/Article.php

+ 1 - 0
application/common/model/Article.php

@@ -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']);