Browse Source

修改采集器获取并搜索资讯

15313670163 3 months ago
parent
commit
263898d072
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/JsonRpc/CollectorService.php

+ 2 - 0
app/JsonRpc/CollectorService.php

@@ -655,6 +655,7 @@ class CollectorService implements CollectorServiceInterface
             ['rule_id','=',$data['rule_id']]
         ];
         //若存在条件参数都存到where数组
+
         if(isset($data['title']) && !empty($data['title'])){
             $where[] = ['title','like','%'.$data['title'].'%'];
         }
@@ -667,6 +668,7 @@ class CollectorService implements CollectorServiceInterface
         if(isset($data['state']) && !empty($data['state'])){
             $where[] = ['state','=',$data['state']];
         }
+        
         //跨库查询栏目导航及采集的新闻
         $info = Article::query()
         ->where($where)