update:转换路径

This commit is contained in:
JaguarJack 2020-09-08 19:54:05 +08:00
parent 93b6f1e2f1
commit 8c153cce60

View File

@ -92,7 +92,10 @@ class CatchUpload
protected function getLocalPath($path)
{
if ($this->getDriver() === self::LOCAL) {
return str_replace(root_path('public'), '', \config('filesystem.disks.local.root')) . DIRECTORY_SEPARATOR .$path;
$path = str_replace(root_path('public'), '', \config('filesystem.disks.local.root')) . DIRECTORY_SEPARATOR .$path;
return str_replace('\\', '/', $path);
}
return $path;