|
@@ -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();
|