소스 검색

Merge branch 'news_10_18_liu' into dev

rkljw 5 달 전
부모
커밋
0552a100d0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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')