Forráskód Böngészése

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

萤火科技 3 éve
szülő
commit
801d5453a6
1 módosított fájl, 2 hozzáadás és 1 törlés
  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;
 }
 
 /**