Commit 172bc6ae authored by hj's avatar hj

更新提交

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