mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-19 08:42:54 +00:00
上传图片
This commit is contained in:
parent
52c87ba750
commit
c8749cb34f
@ -163,7 +163,7 @@ class UploadService
|
|||||||
$fileName = basename($filePath);
|
$fileName = basename($filePath);
|
||||||
$savePath = $dir.DS.$pre.$fileName;
|
$savePath = $dir.DS.$pre.$fileName;
|
||||||
$img->thumb($width,$height)->save($savePath);
|
$img->thumb($width,$height)->save($savePath);
|
||||||
$savePath = str_replace(ROOT_PATH,'',$savePath);
|
$savePath = str_replace(ROOT_PATH.'public','',$savePath);
|
||||||
return ltrim($savePath,'.');
|
return ltrim($savePath,'.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user