You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
566 B

6 days ago
<?php
namespace App\Console\Commands;
use App\Services\ReservationExpiryService;
use Illuminate\Console\Command;
class ExpirePastReservationsCommand extends Command
{
protected $signature = 'reservations:expire-past';
protected $description = '将活动日已过仍未核销的待核销预约标记为已过期expired';
public function handle(ReservationExpiryService $expiry): int
{
$n = $expiry->expireStalePendingReservations();
$this->info("已标记过期:{$n} 条预约。");
return self::SUCCESS;
}
}