Browse Source

采集器文章来源为空判断

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

+ 2 - 0
app/JsonRpc/CollectorService.php

@@ -194,9 +194,11 @@ class CollectorService implements CollectorServiceInterface
                         // var_dump("============3============");       
                         break;              
                 }
+
                 if(!empty($data['source']) && $data['type'] != 3){
                     $rule ['source'] = $data['source'];
                 }
+                
                 if(isset($data['writer_class']) && $data['type'] != 3){
                     $rule ['writer_class'] = $data['writer_class'];
                 }