|
...
|
...
|
@@ -153,7 +153,7 @@ class FileController |
|
|
|
'path' => $url.$fileName,
|
|
|
|
'created_at' => date('Y-m-d H:i:s',time()),
|
|
|
|
'size' => $res->getSize(),
|
|
|
|
'hash' => $hash,
|
|
|
|
'hash' => $hash.$files->getClientOriginalExtension(),,
|
|
|
|
'type'=>$files->getClientOriginalExtension(),
|
|
|
|
];
|
|
|
|
$rs = $fileModel->add($data);
|
|
...
|
...
|
@@ -191,7 +191,7 @@ class FileController |
|
|
|
'path' => $url.$fileName,
|
|
|
|
'created_at' => date('Y-m-d H:i:s',time()),
|
|
|
|
'size' => $res->getSize(),
|
|
|
|
'hash' => $hash,
|
|
|
|
'hash' => $hash.$files->getClientOriginalExtension(),,
|
|
|
|
'type'=>$files->getClientOriginalExtension(),
|
|
|
|
];
|
|
|
|
$data[] = $hash;
|
...
|
...
|
|