|
@@ -60,7 +60,11 @@ class Img
|
|
|
} else {
|
|
|
|
|
|
}
|
|
|
+
|
|
|
$host = str_replace(DEVER_APP_NAME . '/', '', Dever::config('host')->base);
|
|
|
+ if (strstr($file, '/share/dc/data/')) {
|
|
|
+ return $host . str_replace('/share/dc/data/', '', $file);
|
|
|
+ }
|
|
|
return $host . str_replace(DEVER_PROJECT_PATH, '', $file);
|
|
|
$file = Dever::pic($file);
|
|
|
return $file;
|