|
@@ -114,9 +114,8 @@ class FileManageController extends BaseController |
|
@@ -114,9 +114,8 @@ class FileManageController extends BaseController |
|
114
|
$hash = hash_file('md5', $file->getPathname());
|
114
|
$hash = hash_file('md5', $file->getPathname());
|
|
115
|
$info = FileManage::where('hash', $hash)->first();
|
115
|
$info = FileManage::where('hash', $hash)->first();
|
|
116
|
if($info){
|
116
|
if($info){
|
|
117
|
- $this->fail('文件已存在'.$hash);
|
117
|
+ $this->fail('文件已上传,文件名称.'.$info['name']);
|
|
118
|
}
|
118
|
}
|
|
119
|
-
|
|
|
|
120
|
return [
|
119
|
return [
|
|
121
|
'size' => $size,
|
120
|
'size' => $size,
|
|
122
|
'extension' => $extension,
|
121
|
'extension' => $extension,
|