update: 获取上传默认驱动
This commit is contained in:
parent
d1a42637fe
commit
230ea26a1b
@ -27,11 +27,11 @@ class CatchUpload
|
|||||||
public const QIQNIU = 'qiniu';
|
public const QIQNIU = 'qiniu';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 本地
|
* 驱动
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $driver = 'local';
|
protected $driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 本地
|
* 本地
|
||||||
@ -119,9 +119,13 @@ class CatchUpload
|
|||||||
*/
|
*/
|
||||||
protected function getDriver(): string
|
protected function getDriver(): string
|
||||||
{
|
{
|
||||||
|
if ($this->driver) {
|
||||||
return $this->driver;
|
return $this->driver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return \config('filesystem.default');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set driver
|
* set driver
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user