上传图片

This commit is contained in:
sugar1569 2018-09-29 09:47:52 +08:00
parent 52c87ba750
commit c8749cb34f

View File

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