zhangchangchun лет назад: 5
Родитель
Сommit
4b50fd3469
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      app/Console/Kernel.php

+ 4 - 2
app/Console/Kernel.php

@@ -3,6 +3,7 @@
 namespace App\Console;
 
 use App\Console\Commands\Apollo;
+use App\Console\Commands\CommunityMemberStatistics;
 use App\Console\Commands\Downloads;
 use App\Console\Commands\PostStatistics;
 use App\Console\Commands\PostYesterday;
@@ -22,7 +23,8 @@ class Kernel extends ConsoleKernel
         PostYesterday::class,
         Downloads::class,
         VirusAdd::class,
-        PostStatistics::class
+        PostStatistics::class,
+        CommunityMemberStatistics::class
     ];
 
     /**
@@ -47,7 +49,7 @@ class Kernel extends ConsoleKernel
             ->withoutOverlapping()->appendOutputTo($path);
         //统计前一天用户行为累加
         $schedule->command('member:statistics')
-            ->daily()
+            ->dailyAt('00:05')
             ->withoutOverlapping()->appendOutputTo($path);
     }
 }