0
0
Files
Babyclass/app/Console/Kernel.php
2020-08-04 10:09:42 +08:00

48 lines
1.3 KiB
PHP

<?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 = [
//
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
$schedule->command('rulong:ProfitCommand')->dailyAt('22:00'); //总裁,总裁导师,创始总裁分红定时任务
$schedule->command('rulong:OrderDataCommand')->dailyAt('1:00');//每日签收汇总、发货汇总记录生成
$schedule->command('rulong:WindupReportCommand')->monthlyOn(1, '2:00');;//每个月1日生成上个月16日-月末的结算记录。
$schedule->command('rulong:WindupReportCommand')->monthlyOn(16, '2:00');;//每个月16日生成1-15日结算记录。
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__ . '/Commands');
require base_path('routes/console.php');
}
}