!115 商品导入修改

Merge pull request !115 from 赵世界/develop
This commit is contained in:
赵世界 2022-10-25 09:08:49 +00:00 committed by Gitee
commit c6c06115fb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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'],