From 8c153cce60ce4d57e9a2fbc171d0d1aa63288a7a Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Tue, 8 Sep 2020 19:54:05 +0800 Subject: [PATCH] =?UTF-8?q?update:=E8=BD=AC=E6=8D=A2=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/CatchUpload.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extend/catcher/CatchUpload.php b/extend/catcher/CatchUpload.php index 0c07b5f..436484d 100644 --- a/extend/catcher/CatchUpload.php +++ b/extend/catcher/CatchUpload.php @@ -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;