duqinya 5 年之前
父節點
當前提交
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();