From c57c07904159bd0c74bc68ff2f6f39d6f3458ea0 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Tue, 19 May 2026 15:22:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=AE=A1=E7=90=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BC=98=E5=8C=963?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/EventCalendarService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/EventCalendarService.php b/app/Services/EventCalendarService.php index c99839c..bfa5018 100644 --- a/app/Services/EventCalendarService.php +++ b/app/Services/EventCalendarService.php @@ -283,7 +283,7 @@ class EventCalendarService extends BaseService public static function targetModel() { - $pattern_id = EventCalendar::query()->where('status', 1)->first(['pattern_id']); + $pattern_id = EventCalendar::query()->where('status', 1)->value('pattern_id'); $columns = ['id as pattern_id', 'name as model_name']; if ($pattern_id) { $data = ParkingPattern::query()->find($pattern_id, $columns)->toArray();