sugar1569 7 лет назад
Родитель
Сommit
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,'.');
     }
 }