修改工具类
This commit is contained in:
parent
e5ebc34d84
commit
fad98021e4
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user