作者 lyh

gx

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