导入trim

This commit is contained in:
邓皓元 2019-04-22 09:47:50 +08:00
parent bad83f9fb2
commit 541e4d36f0

View File

@ -36,7 +36,7 @@ class ImportService extends Service
foreach ($item as $key => $value) { foreach ($item as $key => $value) {
$column = strtolower($title[$key]); $column = strtolower($title[$key]);
if ($columns === null || in_array($column, $columns)) { if ($columns === null || in_array($column, $columns)) {
$row[$column] = $value; $row[$column] = trim($value);
} }
} }