This commit is contained in:
2025-09-15 17:33:34 +08:00
parent c24c9af1fd
commit e41be712d3
@@ -152,6 +152,22 @@ class UploadedFilesService
return $file;
}
/**
* 获取文件
*
* @param string $path
* @return bool|\Illuminate\Database\Eloquent\Model
*/
public function findFile(array $where)
{
$file = UploadedFiles::where(['file_path' => $where['file_path']]);
if (!$file) {
return false;
}
return $file;
}
/**
* 删除文件