fixed delete files

This commit is contained in:
Edward Yang 2022-07-22 16:31:59 +08:00
parent 24b56d00c2
commit 19d4cfff0d
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class FileManagerService
return; return;
} }
foreach ($files as $file) { foreach ($files as $file) {
$filePath = $basePath . '/' . $file; $filePath = public_path("catalog/{$basePath}/$file");
if (file_exists($filePath)) { if (file_exists($filePath)) {
@unlink($filePath); @unlink($filePath);
} }