duqinya лет назад: 5
Родитель
Сommit
cc7218daf6
1 измененных файлов с 1 добавлено и 0 удалено
  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();