|
@@ -44,7 +44,7 @@ class Subscribe extends Base
|
|
|
$this->error('参数错误');
|
|
|
}
|
|
|
$file_name = explode('/',$url);
|
|
|
- $import_path = $_SERVER['DOCUMENT_ROOT'].'/upload/excel/'.$file_name;
|
|
|
+ $import_path = $_SERVER['DOCUMENT_ROOT'].'/upload/excel/'.end($file_name);
|
|
|
echo $import_path;exit();
|
|
|
$objReader =\PHPExcel_IOFactory::createReader('Excel2007');
|
|
|
$objExcel = $objReader->load($import_path);
|