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)); } } }