数据导入增加来源

master
zcstatham 2 years ago
parent fdea56d2a3
commit 1456b14366
  1. 2
      app/controller/Task.php

@ -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'

Loading…
Cancel
Save