* Delete sheet2.

This commit is contained in:
tanghucheng
2022-08-02 17:50:08 +08:00
parent 825a0e94db
commit 93921a8fe1
2 changed files with 48 additions and 0 deletions
+4
View File
@@ -109,8 +109,12 @@ class port extends control
$extension = $file['extension'];
$fileName = $this->file->savePath . $shortName;
move_uploaded_file($file['tmpname'], $fileName);
if($extension == 'xlsx' or $extension == 'xls') $this->port->cutFile($fileName);
die;
$phpExcel = $this->app->loadClass('phpexcel');
$phpReader = new PHPExcel_Reader_Excel2007();
if(!$phpReader->canRead($fileName))