Browse Source

优化2

master
wanghongjun 23 hours ago
parent
commit
73845cfd05
  1. 3
      app/Imports/EventCalendarImport.php

3
app/Imports/EventCalendarImport.php

@ -38,6 +38,9 @@ class EventCalendarImport implements ToModel
$start_time = $row[3] ?? '';
$end_date = $row[4] ?? '';
$end_time = $row[5] ?? '';
if (empty($row[1]) && empty($row[2]) && empty($row[3]) && empty($row[4]) && empty($row[5])) {
return;
}
if (empty($pattern_name)) {
$this->error[] = imports_error($this->index, 'import3');
return;

Loading…
Cancel
Save