mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-18 16:02:55 +00:00
上传图片
This commit is contained in:
parent
52c87ba750
commit
c8749cb34f
@ -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,'.');
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user