|
|
|
|
@ -19,7 +19,7 @@ class ReservationVerifyController extends Controller
|
|
|
|
|
$today = now()->toDateString();
|
|
|
|
|
|
|
|
|
|
if ((string) ($reservation->reservation_kind ?? 'activity') === \App\Models\Reservation::KIND_TICKET_GRAB) {
|
|
|
|
|
$reservation->loadMissing('entry_date');
|
|
|
|
|
// entry_date 是 reservations 表的字段(cast 为 date),不是 relation
|
|
|
|
|
$ed = $reservation->entry_date;
|
|
|
|
|
$dateStr = $ed instanceof CarbonInterface ? $ed->format('Y-m-d') : ($ed ? (string) $ed : '');
|
|
|
|
|
if ($dateStr === '') {
|
|
|
|
|
|