forked from Catfeeds/ssrpanel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKernel.php
More file actions
73 lines (68 loc) · 3.19 KB
/
Kernel.php
File metadata and controls
73 lines (68 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
\App\Console\Commands\AutoBanSubscribeJob::class,
\App\Console\Commands\AutoBanUserJob::class,
\App\Console\Commands\AutoCheckNodeStatusJob::class,
\App\Console\Commands\AutoClearLogJob::class,
\App\Console\Commands\AutoDecGoodsTrafficJob::class,
\App\Console\Commands\AutoDisableExpireUserJob::class,
\App\Console\Commands\AutoDisableUserJob::class,
\App\Console\Commands\AutoExpireCouponJob::class,
\App\Console\Commands\AutoExpireInviteJob::class,
\App\Console\Commands\AutoReleasePortJob::class,
\App\Console\Commands\AutoReopenUserJob::class,
\App\Console\Commands\AutoResetUserTrafficJob::class,
\App\Console\Commands\AutoStatisticsNodeDailyTrafficJob::class,
\App\Console\Commands\AutoStatisticsNodeHourlyTrafficJob::class,
\App\Console\Commands\AutoStatisticsUserDailyTrafficJob::class,
\App\Console\Commands\AutoStatisticsUserHourlyTrafficJob::class,
\App\Console\Commands\UserExpireWarningJob::class,
\App\Console\Commands\UserTrafficWarningJob::class,
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('command:autoBanSubscribeJob')->everyThirtyMinutes();
$schedule->command('command:autoBanUserJob')->everyTenMinutes();
$schedule->command('command:autoCheckNodeStatusJob')->everyMinute();
$schedule->command('command:autoClearLogJob')->everyThirtyMinutes();
$schedule->command('command:autoDecGoodsTrafficJob')->everyTenMinutes();
$schedule->command('command:autoDisableExpireUserJob')->everyMinute();
$schedule->command('command:autoDisableUserJob')->everyMinute();
$schedule->command('command:autoExpireCouponJob')->everyThirtyMinutes();
$schedule->command('command:autoExpireInviteJob')->everyThirtyMinutes();
$schedule->command('command:autoReleasePortJob')->everyMinute();
$schedule->command('command:autoReopenUserJob')->everyMinute();
$schedule->command('command:autoResetUserTrafficJob')->everyFiveMinutes();
$schedule->command('command:autoStatisticsNodeDailyTrafficJob')->dailyAt('04:30');
$schedule->command('command:autoStatisticsNodeHourlyTrafficJob')->hourly();
$schedule->command('command:autoStatisticsUserDailyTrafficJob')->dailyAt('03:00');
$schedule->command('command:autoStatisticsUserHourlyTrafficJob')->hourly();
$schedule->command('command:userExpireWarningJob')->daily();
$schedule->command('command:userTrafficWarningJob')->daily();
}
/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function commands()
{
require base_path('routes/console.php');
}
}