From 31067093b13bc4fd88c5ba605061b3ea804bf139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Sun, 23 Apr 2023 09:50:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E5=8E=BB=E6=8E=89=E4=BB=8A?= =?UTF-8?q?=E6=97=A5=E5=8A=A0=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Imports/InventoryImport.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Imports/InventoryImport.php b/app/Imports/InventoryImport.php index 2532ff8..5d71811 100644 --- a/app/Imports/InventoryImport.php +++ b/app/Imports/InventoryImport.php @@ -62,14 +62,13 @@ class InventoryImport implements ToArray, SkipsEmptyRows ]); $shopPrice = []; foreach ($row as $i => $v) { - if ($i > 5) { + if ($i > 4) { $shopPrice[$header[$i]] = $v; } } $todayPrice[] = [ 'day' => $day, 'external_sku_id' => $goodsSku['external_sku_id'], - 'price' => $row[5], 'shop_price' => json_encode($shopPrice, 256) ]; }