Explorar el Código

优化获取runtime根目录路径方法

萤火科技 hace 3 años
padre
commit
801d5453a6
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/common.php

+ 2 - 1
app/common.php

@@ -197,7 +197,8 @@ function data_path(): string
  */
  */
 function runtime_root_path(): string
 function runtime_root_path(): string
 {
 {
-    return dirname(runtime_path()) . DIRECTORY_SEPARATOR;
+//    return dirname(runtime_path()) . DIRECTORY_SEPARATOR;
+    return root_path() . 'runtime' . DIRECTORY_SEPARATOR;
 }
 }
 
 
 /**
 /**