1
This commit is contained in:
@@ -152,6 +152,22 @@ class UploadedFilesService
|
|||||||
|
|
||||||
return $file;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除文件
|
* 删除文件
|
||||||
|
|||||||
Reference in New Issue
Block a user