dever 6 年之前
父节点
当前提交
b3d1f7cfc5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Img.php

+ 1 - 1
lib/Img.php

@@ -61,7 +61,7 @@ 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);
         }