停车场系统数据中间件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
1.0 KiB

<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*/
protected function schedule(Schedule $schedule): void
{
$schedule->command('run:set-camera-data')
->everyMinute() // 或者使用其他频率,如 hourly(), everyFiveMinutes() 等
->timezone('Asia/Shanghai'); // 设置时区,根据需要选择时区
$schedule->command('run:check-equipment-status')
->everyMinute() // 或者使用其他频率,如 hourly(), everyFiveMinutes() 等
->timezone('Asia/Shanghai'); // 设置时区,根据需要选择时区
}
/**
* Register the commands for the application.
*/
protected function commands(): void
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
protected $commands = [
Commands\SetCameraData::class
];
}