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'); } /**