fix: #10000 修复商品导入

This commit is contained in:
赵世界 2022-10-25 17:07:32 +08:00
parent 855b752fb5
commit 258a3ff8ca

View File

@ -43,6 +43,7 @@ class GoodsSkusImport implements ToCollection, SkipsEmptyRows
$brands[] = $row[2];
$goodsCodes[] = $row[3];
}
unset($row);
$validator = Validator::make($collection, [
'*.0' => ['required', 'string', 'max:191'],
'*.1' => ['required', 'string', 'max:191', 'exists:goods_types,name'],