From f6e8880788723859780c0b656cfa8fcae22df811 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Wed, 29 Jul 2026 15:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=BA=A6=E7=BB=9F=E8=AE=A1=E4=BC=98?= =?UTF-8?q?=E5=8C=964?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/EventCalendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/EventCalendar.php b/app/Models/EventCalendar.php index 5b8ad3f..476debc 100644 --- a/app/Models/EventCalendar.php +++ b/app/Models/EventCalendar.php @@ -42,7 +42,7 @@ class EventCalendar extends Model public static function getDatePatternId($date) { $date .= date(" H:i:s", time()); - return self::query()->whereIn('status', [0, 1, 2])->where( + return self::query()->whereIn('status', [0, 1])->where( function ($query) use ($date) { $query->whereRaw( "'{$date}' BETWEEN start_time AND end_time"