Commit 2b07e4a4 authored by jiangkebao's avatar jiangkebao

修改下载命名方式

parent ee8554b5
......@@ -383,9 +383,10 @@ class Exporter
case self::DOWNLOAD_TYPE_RETURN_ABSOLUTE_PATH:
$filePath = $this->rootPath . "/export/";
!is_dir($filePath) && mkdir($filePath, 0777, true);
$fileReadPath = $filePath . $filename . '-' . date('YmdHis') . "." . strtolower($this->fileType);
$date = date('YmdHis');
$fileReadPath = $filePath . $filename . '-' . $date . "." . strtolower($this->fileType);
$objWriter->save($fileReadPath);
return config('server.settings.document_root') . "/export/" . $filename . '-' . date('YmdHis') . "." .
return config('server.settings.document_root') . "/export/" . $filename . '-' .$date . "." .
strtolower($this->fileType);
break;
default:
......
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