From 5bdd6e15e4fa3fc2ee0ce0dc3ee92ed253bf1037 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sun, 26 Dec 2021 01:20:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E7=89=87=E5=AA=92=E4=BD=93?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=97=A0=E6=B3=95=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/FileContent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/FileContent.php b/app/Models/FileContent.php index 8f183ff93..65c0b12b1 100644 --- a/app/Models/FileContent.php +++ b/app/Models/FileContent.php @@ -74,7 +74,7 @@ class FileContent extends AbstractModel $content['preview'] = false; if ($content['ext'] && !in_array($content['ext'], ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx'])) { $url = 'http://' . env('APP_IPPR') . '.3/' . $content['url']; - if ($type == 'image') { + if (in_array($type, ['picture', 'image', 'tif', 'media'])) { $url = Base::fillUrl($content['url']); } $content['url'] = base64_encode($url);