From c8749cb34f133c5a6fdee73d7104be5fbcef4a3b Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Sat, 29 Sep 2018 09:47:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/service/UploadService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/service/UploadService.php b/extend/service/UploadService.php index dfb61b61..ed30d726 100644 --- a/extend/service/UploadService.php +++ b/extend/service/UploadService.php @@ -163,7 +163,7 @@ class UploadService $fileName = basename($filePath); $savePath = $dir.DS.$pre.$fileName; $img->thumb($width,$height)->save($savePath); - $savePath = str_replace(ROOT_PATH,'',$savePath); + $savePath = str_replace(ROOT_PATH.'public','',$savePath); return ltrim($savePath,'.'); } } \ No newline at end of file