- 基础环境:Docker 部署配置,源码挂载实时同步 - 修复:super_admin 权限补全、登录重定向循环 - 开发:店铺营销账户账单 - 抖音账户(15字段汇总账单) - 开发:店铺营销账户账单 - 淘系支付宝账户(8字段流水账单) - 开发:店铺营销账户账单 - 拼多多账户(7字段流水账单) - 业务页面导航集成:config/business_navigation.php + Business\Pages 控制器 - 各平台独立表结构和视图,互不影响
61 lines
1.5 KiB
PHP
61 lines
1.5 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)
|
|
{
|
|
// Not installed yet
|
|
if (!config('app.installed')) {
|
|
return;
|
|
}
|
|
|
|
$schedule_time = config('app.schedule_time');
|
|
|
|
$schedule->command('reminder:invoice')->dailyAt($schedule_time);
|
|
$schedule->command('reminder:bill')->dailyAt($schedule_time);
|
|
$schedule->command('recurring:check')->dailyAt($schedule_time)->runInBackground();
|
|
$schedule->command('storage-temp:clear')->dailyAt('17:00');
|
|
$schedule->command('model:prune')->dailyAt('17:00');
|
|
}
|
|
|
|
/**
|
|
* Register the Closure based commands for the application.
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function commands()
|
|
{
|
|
require base_path('routes/console.php');
|
|
|
|
$this->load(__DIR__ . '/Commands');
|
|
}
|
|
|
|
/**
|
|
* Get the timezone that should be used by default for scheduled events.
|
|
*
|
|
* @return \DateTimeZone|string|null
|
|
*/
|
|
protected function scheduleTimezone()
|
|
{
|
|
return config('app.timezone');
|
|
}
|
|
}
|