|
@@ -61,13 +61,10 @@ class Img
|
|
|
|
|
|
}
|
|
|
|
|
|
- $host = str_replace(DEVER_APP_NAME . '/', '', Dever::config('host')->base);
|
|
|
-
|
|
|
-
|
|
|
+ $host = str_replace(DEVER_PROJECT . '/' . 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;
|