排除全部为空的行
This commit is contained in:
parent
f65ca6610f
commit
6573f3f28d
@ -33,11 +33,9 @@ class ImportService extends Service
|
|||||||
$title = $item;
|
$title = $item;
|
||||||
} else {
|
} else {
|
||||||
$row = [];
|
$row = [];
|
||||||
|
$emptyRow = true;
|
||||||
foreach ($item as $key => $value) {
|
foreach ($item as $key => $value) {
|
||||||
$emptyRow = true;
|
|
||||||
|
|
||||||
$column = strtolower($title[$key]);
|
$column = strtolower($title[$key]);
|
||||||
|
|
||||||
if ($columns === null || in_array($column, $columns)) {
|
if ($columns === null || in_array($column, $columns)) {
|
||||||
$row[$column] = trim($value);
|
$row[$column] = trim($value);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user