$row[0] // ]); // } /** * 逐条插入 * */ public function onRow(Row $row) { $rowIndex = $row->getIndex(); $row = $row->toArray(); // Log::info($rowIndex); if ($rowIndex === 1) return false; if (!$row[1]) return false; return BoxBinding::updateOrCreate([ 'box_no' => $row[1], ], [ 'batch' => $row[0], 'box_no' => $row[1], 'device_xing' => $row[2], 'imei_no' => $row[3], 'sim_no' => $row[4], 'imsi_no' => $row[5], 'iccid_no' => $row[6], ]); } }