zxhxx 3 роки тому
батько
коміт
0a39187579

+ 2 - 2
application/api/controller/Article.php

@@ -21,7 +21,7 @@ class Article extends Api
     }
     public function lst(Request $request)
     {
-        list($ifyid,$key,$page,$limit,$is_hot,$cid) = UtilService::getMore(
+        list($ifyid,$key,$page,$limit,$is_hot,$is_rec,$cid) = UtilService::getMore(
             [
                 ['ifyid',0],
                 ['key',''],
@@ -32,7 +32,7 @@ class Article extends Api
                 ['cid',$this->cid],
             ],$request,true
         );
-        return $this->success('获取成功',ArticleModel::lst(compact('ifyid','key','page','limit','is_hot','cid')));
+        return $this->success('获取成功',ArticleModel::lst(compact('ifyid','key','page','limit','is_hot','is_rec','cid')));
     }
     public function view()
     {

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

@@ -88,7 +88,6 @@ 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']);