From c23cc1b441c0024d5f625c1601a38a402f202ef2 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Thu, 5 May 2022 22:34:22 +0800 Subject: [PATCH] calim schedule --- app/Console/Commands/ClaimSettle.php | 4 ++-- app/Console/Kernel.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/ClaimSettle.php b/app/Console/Commands/ClaimSettle.php index 4addd0bd..b16d0e75 100644 --- a/app/Console/Commands/ClaimSettle.php +++ b/app/Console/Commands/ClaimSettle.php @@ -13,14 +13,14 @@ class ClaimSettle extends Command * * @var string */ - protected $signature = 'claim:settle {--uid=} {--force=}'; + protected $signature = 'claim:settle {--uid=} {--force=} {--test=}'; /** * The console command description. * * @var string */ - protected $description = 'Claim settle, options: --uid, --force'; + protected $description = 'Claim settle, options: --uid, --force, --test'; /** * Create a new command instance. diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 415febf5..ad5a4d33 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -31,6 +31,7 @@ class Kernel extends ConsoleKernel $schedule->command('hr:update_status')->everyMinute(); $schedule->command('hr:update_status --ignore_time=1')->hourly(); $schedule->command('user:delete_expired_token')->dailyAt('04:00'); + $schedule->command('claim:settle')->monthlyOn(); } /**