!48 导入数据去掉首尾空格

Merge pull request !48 from develop
This commit is contained in:
赵世界 2022-08-22 08:13:07 +00:00 committed by Gitee
commit f3a893ad6c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -35,7 +35,7 @@ class GoodsSkusImport implements ToCollection, SkipsEmptyRows
unset($rows[0], $rows[1]);
$rows = $rows->toArray();
$types = $brands = $goodsCodes = [];
foreach ($rows as $row) {
foreach ($rows as &$row) {
$row = array_map(static function ($v) {
return trim($v);
}, $row);