From 230ea26a1b8c72927b2d7cf60ff140c09403b651 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Wed, 29 Jul 2020 07:29:42 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E8=8E=B7=E5=8F=96=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/CatchUpload.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/extend/catcher/CatchUpload.php b/extend/catcher/CatchUpload.php index edc7a6a..0ed8548 100644 --- a/extend/catcher/CatchUpload.php +++ b/extend/catcher/CatchUpload.php @@ -27,11 +27,11 @@ class CatchUpload public const QIQNIU = 'qiniu'; /** - * 本地 + * 驱动 * * @var string */ - protected $driver = 'local'; + protected $driver; /** * 本地 @@ -119,7 +119,11 @@ class CatchUpload */ protected function getDriver(): string { - return $this->driver; + if ($this->driver) { + return $this->driver; + } + + return \config('filesystem.default'); } /**