|
@@ -45,13 +45,13 @@ class Subscribe extends Base
|
|
|
}
|
|
|
$file_name = explode('/',$url);
|
|
|
$import_path = $_SERVER['DOCUMENT_ROOT'].'/upload/excel/'.end($file_name);
|
|
|
- echo $import_path;exit();
|
|
|
$objReader =\PHPExcel_IOFactory::createReader('Excel2007');
|
|
|
$objExcel = $objReader->load($import_path);
|
|
|
$list = $objExcel->getActiveSheet()->toArray();
|
|
|
if(empty($list)){
|
|
|
$this->error('暂无数据');
|
|
|
}
|
|
|
+ var_dump($list);exit();
|
|
|
foreach ($list as $k=>$v){
|
|
|
if($k > 0 && $v[0]){
|
|
|
$array = array();
|