Commit 60b738df authored by yinxiaoling's avatar yinxiaoling

下载失败数据接口

parent 6570e01f
...@@ -97,10 +97,10 @@ class StrategySetController extends Controller ...@@ -97,10 +97,10 @@ class StrategySetController extends Controller
if (empty($excelFile)){ if (empty($excelFile)){
return $this->errorWithInfo('表单验证失败', 401); return $this->errorWithInfo('表单验证失败', 401);
} }
$url = storage_path()."\\exports\\".$excelFile.'.xlsx'; $url = storage_path()."\\import\\".$excelFile.'.xlsx';
try{ try{
if (!file_exists($url)){ if (!file_exists($url)){
return $this->errorWithInfo('文件不存在,下载失败111', 401); return $this->errorWithInfo('文件不存在,下载失败', 401);
} }
$cont=fopen($url,'r'); $cont=fopen($url,'r');
$fcontent = fread($cont,filesize($url)); $fcontent = fread($cont,filesize($url));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment