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