Merge pull request !157 from 赵世界/develop
This commit is contained in:
赵世界 2023-04-23 01:51:36 +00:00 committed by Gitee
commit 0a04f7eafb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -62,14 +62,13 @@ class InventoryImport implements ToArray, SkipsEmptyRows
]); ]);
$shopPrice = []; $shopPrice = [];
foreach ($row as $i => $v) { foreach ($row as $i => $v) {
if ($i > 5) { if ($i > 4) {
$shopPrice[$header[$i]] = $v; $shopPrice[$header[$i]] = $v;
} }
} }
$todayPrice[] = [ $todayPrice[] = [
'day' => $day, 'day' => $day,
'external_sku_id' => $goodsSku['external_sku_id'], 'external_sku_id' => $goodsSku['external_sku_id'],
'price' => $row[5],
'shop_price' => json_encode($shopPrice, 256) 'shop_price' => json_encode($shopPrice, 256)
]; ];
} }