dever 6 years ago
parent
commit
2276326605
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/Img.php

+ 4 - 0
lib/Img.php

@@ -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;