fixed 根目录图片

This commit is contained in:
Edward Yang 2022-07-22 15:47:03 +08:00
parent 9801e2612f
commit eb0044618d
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class FileManagerService
*/
public function getFiles($baseFolder, int $page = 1): array
{
$currentBasePath = $this->fileBasePath . $baseFolder;
$currentBasePath = rtrim($this->fileBasePath . $baseFolder, '/');
$files = glob($currentBasePath . '/*');
$images = [];