sugar1569 7 سال پیش
والد
کامیت
c8749cb34f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      extend/service/UploadService.php

+ 1 - 1
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,'.');
     }
 }