dever 3 years ago
parent
commit
508407ad7a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Code.php

+ 2 - 2
src/Code.php

@@ -48,8 +48,8 @@ class Code
                 file_put_contents($file, $data);
             }
         }
-
-        $host = str_replace(DEVER_PROJECT . '/' . DEVER_APP_NAME . '/', '', Dever::config('host')->base);
+        //$host = str_replace(DEVER_PROJECT . '/' . DEVER_APP_NAME . '/', '', Dever::config('host')->base);
+        $host = Dever::config('host')->host;
         if (strstr($file, '/share/dc/data/')) {
             return $host . str_replace('/share/dc/data/', '', $file);
         }