From 541e4d36f0bc78caa30f39ed2c1c66ef1aae0783 Mon Sep 17 00:00:00 2001 From: denghy Date: Mon, 22 Apr 2019 09:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5trim?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Domains/Export/Services/ImportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Domains/Export/Services/ImportService.php b/app/Domains/Export/Services/ImportService.php index 21211c55..9905b84a 100644 --- a/app/Domains/Export/Services/ImportService.php +++ b/app/Domains/Export/Services/ImportService.php @@ -36,7 +36,7 @@ class ImportService extends Service foreach ($item as $key => $value) { $column = strtolower($title[$key]); if ($columns === null || in_array($column, $columns)) { - $row[$column] = $value; + $row[$column] = trim($value); } }