From fad98021e4c9bde118643d3abb7c4f5fe538556a Mon Sep 17 00:00:00 2001 From: yanwenwu Date: Sun, 2 Feb 2020 22:09:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=A5=E5=85=B7=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/Utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extend/catcher/Utils.php b/extend/catcher/Utils.php index a83c613..fb20b7f 100644 --- a/extend/catcher/Utils.php +++ b/extend/catcher/Utils.php @@ -64,7 +64,7 @@ class Utils { $driver = \config('filesystem.disks.' . $driver); - switch ($driver) { + switch ($driver['type']) { case CatchUpload::QIQNIU: case CatchUpload::LOCAL: return $driver['domain']; @@ -73,7 +73,7 @@ class Utils case CatchUpload::QCLOUD: return $driver['cdn']; default: - throw new FailedException('Driver [%s] Not Supported.'); + throw new FailedException(sprintf('Driver [%s] Not Supported.', $driver)); } } }