mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 15:10:54 +00:00
0. 更新项目依赖包; 1. 适配Payment依赖包5.0的代码修改; 2. 独立化节点阻断检测功能; 现在运行管理在节点页面,单独测试节点; 3. 节点阻断检测通知功能不再是一个报告一个报告发,改为一次检测只在有阻断出现情况下,统一发送结果; 4. 修改激活逻辑; 5. 修复重复优惠券SN码无报错的问题;现在优惠码为唯一码,不允许重复码出现; 6. 添加用户获取节点信息时按钮的动画加载效果; 7. 修复管理系统页面部分选项输入任何值都会报错的问题; 8. 代码命名与书写规范化;
82 lines
2.5 KiB
PHP
82 lines
2.5 KiB
PHP
<?php
|
|
|
|
namespace App\Console;
|
|
|
|
use App\Console\Commands\AutoClearLog;
|
|
use App\Console\Commands\AutoJob;
|
|
use App\Console\Commands\AutoReportNode;
|
|
use App\Console\Commands\AutoStatisticsNodeDailyTraffic;
|
|
use App\Console\Commands\AutoStatisticsNodeHourlyTraffic;
|
|
use App\Console\Commands\AutoStatisticsUserDailyTraffic;
|
|
use App\Console\Commands\AutoStatisticsUserHourlyTraffic;
|
|
use App\Console\Commands\DailyJob;
|
|
use App\Console\Commands\NodeBlockedDetection;
|
|
use App\Console\Commands\ServiceTimer;
|
|
use App\Console\Commands\upgradeUserResetTime;
|
|
use App\Console\Commands\UserExpireAutoWarning;
|
|
use App\Console\Commands\UserTrafficAbnormalAutoWarning;
|
|
use App\Console\Commands\UserTrafficAutoWarning;
|
|
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 = [
|
|
AutoClearLog::class,
|
|
AutoJob::class,
|
|
AutoReportNode::class,
|
|
AutoStatisticsNodeDailyTraffic::class,
|
|
AutoStatisticsNodeHourlyTraffic::class,
|
|
AutoStatisticsUserDailyTraffic::class,
|
|
AutoStatisticsUserHourlyTraffic::class,
|
|
DailyJob::class,
|
|
NodeBlockedDetection::class,
|
|
ServiceTimer::class,
|
|
upgradeUserResetTime::class,
|
|
UserExpireAutoWarning::class,
|
|
UserTrafficAbnormalAutoWarning::class,
|
|
UserTrafficAutoWarning::class,
|
|
];
|
|
|
|
/**
|
|
* Define the application's command schedule.
|
|
*
|
|
* @param Schedule $schedule
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function schedule(Schedule $schedule)
|
|
{
|
|
$schedule->command('autoJob')->everyMinute();
|
|
$schedule->command('serviceTimer')->everyTenMinutes();
|
|
$schedule->command('autoClearLog')->everyThirtyMinutes();
|
|
$schedule->command('nodeBlockedDetection')->everyTenMinutes();
|
|
$schedule->command('autoStatisticsNodeHourlyTraffic')->hourly();
|
|
$schedule->command('autoStatisticsUserHourlyTraffic')->hourly();
|
|
$schedule->command('userTrafficAbnormalAutoWarning')->hourly();
|
|
$schedule->command('dailyJob')->daily();
|
|
$schedule->command('autoReportNode')->dailyAt('09:00');
|
|
$schedule->command('userTrafficAutoWarning')->dailyAt('10:30');
|
|
$schedule->command('userExpireAutoWarning')->dailyAt('20:00');
|
|
$schedule->command('autoStatisticsUserDailyTraffic')->dailyAt('23:50');
|
|
$schedule->command('autoStatisticsNodeDailyTraffic')->dailyAt('23:55');
|
|
}
|
|
|
|
/**
|
|
* Register the commands for the application.
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function commands()
|
|
{
|
|
$this->load(__DIR__.'/Commands');
|
|
|
|
require base_path('routes/console.php');
|
|
}
|
|
}
|