fix claim settle cronjob

This commit is contained in:
xiaomlove
2022-06-01 13:15:55 +08:00
parent 3fe4cb8b6d
commit 9541d94aff
2 changed files with 7 additions and 3 deletions

View File

@@ -32,8 +32,9 @@ class Kernel extends ConsoleKernel
$schedule->command('hr:update_status')->everyMinute()->withoutOverlapping();
$schedule->command('hr:update_status --ignore_time=1')->hourly()->withoutOverlapping();
$schedule->command('user:delete_expired_token')->dailyAt('04:00');
$schedule->command('claim:settle')->hourly()->between("00:00", "12:00")
->when(function () {return Carbon::now()->format('d') == '01';})->withoutOverlapping();
$schedule->command('claim:settle')->hourly()->when(function () {
return Carbon::now()->format('d') == '01';
})->withoutOverlapping();
}
/**