Browse Source

dir permission improve

master
filesite 2 days ago
parent
commit
2d648bfbec
  1. 3
      plugins/Common.php

3
plugins/Common.php

@ -541,6 +541,9 @@ Class Common { @@ -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)) {

Loading…
Cancel
Save