|
@@ -24,6 +24,12 @@ class View
|
|
|
$host = Dever::config('host')->uploadRes;
|
|
|
$root = Dever::data() . 'upload/';
|
|
|
$dest = str_replace($host, $root, $file);
|
|
|
+ if (strstr($source, $host)) {
|
|
|
+ $source = $root . str_replace($host, '', $source);
|
|
|
+ if (!is_file($source)) {
|
|
|
+ $source = $array[0];
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
if (!strstr($dest, 'http://') && !is_file($dest)) {
|
|
|
$handle = new Handle();
|