|
|
@ -614,7 +614,7 @@ class Task extends BaseController |
|
|
|
private function checkUploadTpl($file, $type) |
|
|
|
private function checkUploadTpl($file, $type) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$path_info = pathinfo($file); |
|
|
|
$path_info = pathinfo($file); |
|
|
|
if ($type == 1 && $path_info['extension'] == 'xlsx') { |
|
|
|
if ($type == 1) { |
|
|
|
$spreadsheetReader = Excel::loadFile($file); |
|
|
|
$spreadsheetReader = Excel::loadFile($file); |
|
|
|
$sheet = $spreadsheetReader->getSheet(0); |
|
|
|
$sheet = $spreadsheetReader->getSheet(0); |
|
|
|
$highestColumn = $sheet->getHighestColumn(); // e.g 'F' |
|
|
|
$highestColumn = $sheet->getHighestColumn(); // e.g 'F' |
|
|
|