dever 6 years ago
parent
commit
df9c884938
2 changed files with 3 additions and 1 deletions
  1. 1 1
      src/Store/Local.php
  2. 2 0
      src/View.php

+ 1 - 1
src/Store/Local.php

@@ -169,7 +169,7 @@ class Local extends Core implements Config
 			$this->output['file'] = $file;
 			$this->output['url'] = $url;
 		}
-
+		
 		$this->img()->setType('im');
 		$this->img()->webp($source, $num, $dest);
 	}

+ 2 - 0
src/View.php

@@ -47,7 +47,9 @@ class View
             $root = Dever::data() . 'upload/';
             $dest = str_replace(array('{uploadRes}', $host), $root, $file);
             if (strstr($source, $host)) {
+                
                 $source = $root . str_replace($host, '', $source);
+
                 if (!is_file($source)) {
                     $source = $array[0];
                 }