15313670163 3 months ago
parent
commit
ec6b50b0c6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/JsonRpc/NewsService.php

+ 3 - 0
app/JsonRpc/NewsService.php

@@ -332,6 +332,7 @@ class NewsService implements NewsServiceInterface
                     2 => '5',
                     3 => '0',
                 ];
+                
                 $result = Article::where($where)->whereIn('level',$level)->orderBy("created_at","desc")->limit($data['pagesize'])->get();
             }elseif($data['level']==2){
                 $level='2';
@@ -380,7 +381,9 @@ class NewsService implements NewsServiceInterface
      */
     public function getWebsiteArticleList(array $data): array
     {
+
        $where[] = ['status', '=', 1];
+
        if(isset($data['keyword'])  && !empty($data['keyword'])){
             array_push($where,['article.title','like','%'.$data['keyword'].'%']);
         }