* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace App\Console; use App\Console\Commands\Base\InitSettingCommand; use App\Console\Commands\Base\RemoveModuleCommand; use App\Console\Commands\Base\RemoveModuleControllerCommand; use App\Console\Commands\Dwbs\MakeDataCommand; use App\Console\Commands\Dwbs\MakeStatisticalResourceCommand; use App\Console\Commands\Dwbs\StatisticalUserCommand; use App\Console\Commands\InitPermissionsCommand; use App\Console\Commands\LoadlogsCommand; use App\Console\Commands\TestCommand; use Illuminate\Console\Scheduling\Schedule; use Laravel\Lumen\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { /**§ * The Artisan commands provided by your application. * * @var array */ protected $commands = [ TestCommand::class, InitPermissionsCommand::class, // InitSettingCommand::class, // RemoveModuleCommand::class, // RemoveModuleControllerCommand::class, LoadlogsCommand::class, MakeDataCommand::class, MakeStatisticalResourceCommand::class, StatisticalUserCommand::class ]; /** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule */ protected function schedule(Schedule $schedule) { $schedule->command(StatisticalUserCommand::class)->dailyAt("00:10"); //todo:生成学霸和排行榜图片(暂时关闭) // $schedule->command(MakeStatisticalResourceCommand::class)->dailyAt("02:10"); } }