diff --git a/Application/Admin/Event/BatchImportExcelEvent.class.php b/Application/Admin/Event/BatchImportExcelEvent.class.php index 7ac435222..c3300e98d 100644 --- a/Application/Admin/Event/BatchImportExcelEvent.class.php +++ b/Application/Admin/Event/BatchImportExcelEvent.class.php @@ -64,6 +64,7 @@ class BatchImportExcelEvent extends Controller{ if($currentColumn == "C"){ $currentvalue = $sheet->getCell($address)->getValue(); if (empty($currentvalue)) { + continue; unlink($file); throw new \Exception($address.' 数据为空'); } @@ -86,6 +87,7 @@ class BatchImportExcelEvent extends Controller{ }else{ $currentvalue = $sheet->getCell($address)->getValue(); if (empty($currentvalue)) { + continue; unlink($file); throw new \Exception($address.' 数据为空'); } diff --git a/Application/Admin/View/Server/batch.html b/Application/Admin/View/Server/batch.html index 87d06981f..fb237f7c0 100644 --- a/Application/Admin/View/Server/batch.html +++ b/Application/Admin/View/Server/batch.html @@ -42,7 +42,7 @@