duqinya 5 éve
szülő
commit
cc7218daf6
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      app/Console/Commands/ExcellentResidents.php

+ 1 - 0
app/Console/Commands/ExcellentResidents.php

@@ -103,6 +103,7 @@ class ExcellentResidents extends Command
 
         //昨日拉新最多用户
         $registered = $this->registeredRecord
+            ->where('superior_uid', '!=', 0)
             ->whereBetween('created_at', [$yesterday_start, $yesterday_end])
             ->select(DB::raw('count(*) as count'), 'superior_uid as content_author_id')//作为用户ID
             ->groupBy('superior_uid')->orderBy('count', 'desc')->limit(1)->get();