dever 3 years ago
parent
commit
08ffa56a60
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/View.php

+ 1 - 1
src/View.php

@@ -384,7 +384,7 @@ class View
 	# 根据配置生成缩略图、裁切图
 	public function get($file = '', $type = '', $id = '')
 	{
-        $file = Dever::input('file', $file);
+        $file = $file ? $file : Dever::input('file');
         $array = $this->getFile($file, $type, $id);
         $source = $array[0];
         $type = $array[1];