From 2d648bfbec6e91bbf4ea1bb3c98d37e5980bbcf3 Mon Sep 17 00:00:00 2001 From: filesite Date: Sun, 24 Nov 2024 21:10:39 +0800 Subject: [PATCH] dir permission improve --- plugins/Common.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Common.php b/plugins/Common.php index 60c9398..e27cb33 100644 --- a/plugins/Common.php +++ b/plugins/Common.php @@ -541,6 +541,9 @@ Class Common { ); $jsonData = json_encode($cacheData, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); $cacheDir = __DIR__ . '/../runtime/cache/'; + if (!is_dir($cacheDir)) { + mkdir($cacheDir, 0777, true); + } //子目录支持 if (!empty($cacheSubDir)) {