This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<?php
namespace App\Console\Commands;
use App\Services\ReservationExpiryService;
use Illuminate\Console\Command;
class ExpirePastReservationsCommand extends Command
{
protected $signature = 'reservations:expire-past';
protected $description = '将活动日/入馆日历日已满(已过当日 23:59,自次日起)仍未核销的待核销预约标记为 expired';
public function handle(ReservationExpiryService $expiry): int
$n = $expiry->expireStalePendingReservations();
$this->info("已标记过期:{$n} 条预约。");
return self::SUCCESS;
}