升级节日福利年度调度与批次领取

This commit is contained in:
2026-04-21 17:53:11 +08:00
parent 5a6446b832
commit a066580014
25 changed files with 2362 additions and 536 deletions
+8
View File
@@ -45,6 +45,14 @@ Schedule::call(function () {
->each(fn ($e) => \App\Jobs\TriggerHolidayEventJob::dispatch($e));
})->everyMinute()->name('holiday-events:trigger')->withoutOverlapping();
// 每分钟:收尾已过期但尚未结算的节日福利批次
Schedule::call(function () {
\App\Models\HolidayEventRun::pendingToExpire()
->each(function (\App\Models\HolidayEventRun $run): void {
$run->update(['status' => 'expired']);
});
})->everyMinute()->name('holiday-event-runs:expire')->withoutOverlapping();
// 每分钟:推进百家乐买单活动状态(开始 / 等待结算 / 开放领取 / 过期收尾)
Schedule::call(function () {
app(\App\Services\BaccaratLossCoverService::class)->tick();