Explorar o código

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

萤火科技 %!s(int64=3) %!d(string=hai) anos
pai
achega
801d5453a6
Modificáronse 1 ficheiros con 2 adicións e 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
 {
-    return dirname(runtime_path()) . DIRECTORY_SEPARATOR;
+//    return dirname(runtime_path()) . DIRECTORY_SEPARATOR;
+    return root_path() . 'runtime' . DIRECTORY_SEPARATOR;
 }
 
 /**