mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-16 05:52:51 +00:00
excel报错
This commit is contained in:
parent
d2efa0ebda
commit
15d0f682ea
@ -1,6 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace service;
|
namespace service;
|
||||||
|
|
||||||
|
use PHPExcel_IOFactory;
|
||||||
|
use PHPExcel;
|
||||||
use service\JsonService as Json;
|
use service\JsonService as Json;
|
||||||
use think\Request;
|
use think\Request;
|
||||||
|
|
||||||
@ -59,8 +61,8 @@ class PHPExcelService
|
|||||||
* return
|
* return
|
||||||
*/
|
*/
|
||||||
private static function initialize($data,$fun){
|
private static function initialize($data,$fun){
|
||||||
vendor("PHPExcel.PHPExcel.PHPExcel");
|
// vendor("PHPExcel.PHPExcel.PHPExcel");
|
||||||
self::$PHPExcel= new \PHPExcel();
|
// self::$PHPExcel= new \PHPExcel();
|
||||||
if($fun!==null && is_callable($fun)){
|
if($fun!==null && is_callable($fun)){
|
||||||
self::$styleArray=$fun();
|
self::$styleArray=$fun();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user