sugar1569 hace 7 años
padre
commit
c8749cb34f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,'.');
     }
 }