From e3aeb25fed8680336ce3633bc1f2677938b7c66d Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Thu, 18 Jun 2026 11:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E8=A1=8C=E4=BA=8B=E5=8E=86?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E9=94=99=E8=AF=AF=E8=BF=94=E5=9B=9E2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Imports/EventCalendarImport.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Imports/EventCalendarImport.php b/app/Imports/EventCalendarImport.php index 05c83a4..402f557 100644 --- a/app/Imports/EventCalendarImport.php +++ b/app/Imports/EventCalendarImport.php @@ -32,11 +32,11 @@ class EventCalendarImport implements ToModel $this->index += 1; return; } - $pattern_name = $row[1]; - $start_date = $row[2]; - $start_time = $row[3]; - $end_date = $row[4]; - $end_time = $row[5]; + $pattern_name = $row[1] ?? ''; + $start_date = $row[2] ?? ''; + $start_time = $row[3] ?? ''; + $end_date = $row[4] ?? ''; + $end_time = $row[5] ?? ''; if (empty($pattern_name)) { $this->error[] = imports_error($this->index, 'import3'); return;