From c5aee52667f0ec6421b7c19b12986207228c2b58 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Wed, 14 Oct 2020 20:17:18 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=9B=B4=E6=96=B0=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/system/controller/Attachments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catch/system/controller/Attachments.php b/catch/system/controller/Attachments.php index 60234a4..d47f5e2 100644 --- a/catch/system/controller/Attachments.php +++ b/catch/system/controller/Attachments.php @@ -42,7 +42,7 @@ class Attachments extends CatchController if ($attachment->driver == 'local') { $localPath = config('filesystem.disks.local.root') . DIRECTORY_SEPARATOR; $path = $localPath . str_replace('\\','\/', $attachment->path); - if (!FileSystem::exists($path)) { + if (FileSystem::exists($path)) { Filesystem::delete($path); } } else {