songxingwei il y a 2 ans
Parent
commit
f2baeacb6f
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      application/admin/controller/Courier.php

+ 2 - 1
application/admin/controller/Courier.php

@@ -250,7 +250,8 @@ class Courier extends Controller
         }
 
         try {
-            $objPHPExcel= \PHPExcel_IOFactory::load($import_path);
+            $objReader =\PHPExcel_IOFactory::createReader('Excel2007');
+            $objPHPExcel= $objReader->load($import_path);
             $sheet_read_arr=array();
             $sheet_read_arr["sheet1"]=array("A","B");
             //循环所有的页