|
...
|
...
|
@@ -141,7 +141,7 @@ class FileController |
|
|
|
$fileModel = new File();
|
|
|
|
$file_hash = $fileModel->read(['hash'=>$hash]);
|
|
|
|
if($file_hash !== false){
|
|
|
|
return $hash;
|
|
|
|
return $this->response('资源',Code::SUCCESS,['file'=>$hash]);
|
|
|
|
}
|
|
|
|
$url = $this->path;
|
|
|
|
$fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension();
|
...
|
...
|
|