feat: #10000 去掉今日加个

This commit is contained in:
赵世界 2023-04-23 09:50:52 +08:00
parent 699f5c16d6
commit 31067093b1

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)
]; ];
} }