作者 lyh

GX生成白帽报表脚本

... ... @@ -66,14 +66,16 @@ class UpdateProjectTdk extends Command
$sheet = $spreadsheet->getActiveSheet();
$rows = $sheet->toArray();
unlink($tempPath);
dd($rows);
// }catch (\Exception $e){
// echo '文件打不开'.PHP_EOL;
// $noticeLogModel->edit(['status'=>$noticeLogModel::STATUS_FAIL],['id'=>$task_id]);
// continue;
// }
// 假设第一行是表头
$header = $rows[0];
$dataRows = array_slice($rows, 1);
dd($dataRows);
}
}
return true;
... ...