Commit 172bc6ae authored by hj's avatar hj

更新提交

parent a055cf72
...@@ -91,8 +91,9 @@ class MsdsController extends Controller ...@@ -91,8 +91,9 @@ class MsdsController extends Controller
try{ try{
ob_end_clean(); ob_end_clean();
$image = $this->getService()->loadFile($path); $fileService = app(FileService::class);
$fileInfo = $this->getService()->getFileListByUniqueId($path); $image = $fileService->loadFile($path);
$fileInfo = $fileService->getFileListByUniqueId($path);
if($fileInfo){ if($fileInfo){
$fileInfo = current($fileInfo); $fileInfo = current($fileInfo);
header('content-type:'.$fileInfo['mime_type']); header('content-type:'.$fileInfo['mime_type']);
......
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