songxingwei 2 anos atrás
pai
commit
f2baeacb6f
1 arquivos alterados com 2 adições e 1 exclusões
  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");
             //循环所有的页