修改工具类

This commit is contained in:
yanwenwu 2020-02-02 22:09:53 +08:00
parent e5ebc34d84
commit fad98021e4

View File

@ -64,7 +64,7 @@ class Utils
{ {
$driver = \config('filesystem.disks.' . $driver); $driver = \config('filesystem.disks.' . $driver);
switch ($driver) { switch ($driver['type']) {
case CatchUpload::QIQNIU: case CatchUpload::QIQNIU:
case CatchUpload::LOCAL: case CatchUpload::LOCAL:
return $driver['domain']; return $driver['domain'];
@ -73,7 +73,7 @@ class Utils
case CatchUpload::QCLOUD: case CatchUpload::QCLOUD:
return $driver['cdn']; return $driver['cdn'];
default: default:
throw new FailedException('Driver [%s] Not Supported.'); throw new FailedException(sprintf('Driver [%s] Not Supported.', $driver));
} }
} }
} }