Pārlūkot izejas kodu

Merge branch 'news_10_18_liu' into dev

rkljw 5 mēneši atpakaļ
vecāks
revīzija
0552a100d0
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      app/JsonRpc/NewsService.php

+ 2 - 0
app/JsonRpc/NewsService.php

@@ -143,6 +143,7 @@ class NewsService implements NewsServiceInterface
     public function getArticleList(array $data): array
     {
         $where= [];
+
         if(isset($data['title'])  && $data['title']){
             array_push($where,['article.title','like','%'.$data['title'].'%']);
         }
@@ -170,6 +171,7 @@ class NewsService implements NewsServiceInterface
             $where[] =   ['article.title','like','%'.$data['keyword'].'%'];
             $where[] =   ['article.status', '1'];
         }
+        
         $rep = Article::where($where)
             ->whereNotIn('status',[404])
             ->leftJoin('category','article.catid','category.id')