|
...
|
...
|
@@ -151,6 +151,8 @@ class ImageController extends Controller |
|
|
|
*/
|
|
|
|
public function single($files){
|
|
|
|
$hash = hash_file('md5', $files->getPathname());
|
|
|
|
var_dump($files->getClientOriginalExtension());
|
|
|
|
die();
|
|
|
|
//查看文件是否存在
|
|
|
|
$imageModel = new ImageModel();
|
|
|
|
$image_hash = $imageModel->read(['hash'=>$hash]);
|
...
|
...
|
|