diff --git a/library/think/Build.php b/library/think/Build.php index a981caef..ef150c9e 100644 --- a/library/think/Build.php +++ b/library/think/Build.php @@ -57,7 +57,7 @@ class Build foreach ($list as $dir) { if (!is_dir(APP_PATH . $dir)) { // 创建目录 - mkdir(APP_PATH . $dir, 0777, true); + mkdir(APP_PATH . $dir, 0644, true); } } } @@ -73,7 +73,7 @@ class Build foreach ($list as $file) { if (!is_dir(APP_PATH . dirname($file))) { // 创建目录 - mkdir(APP_PATH . dirname($file), 0777, true); + mkdir(APP_PATH . dirname($file), 0644, true); } if (!is_file(APP_PATH . $file)) { file_put_contents(APP_PATH . $file, 'php' == pathinfo($file, PATHINFO_EXTENSION) ? "error = "目录 {$path} 创建失败!"; diff --git a/library/think/console/command/Make.php b/library/think/console/command/Make.php index a28cf0f0..64098fec 100644 --- a/library/think/console/command/Make.php +++ b/library/think/console/command/Make.php @@ -25,7 +25,7 @@ class Make extends Command } if (!is_dir(dirname($file))) { - mkdir(strtolower(dirname($file)), 0777, true); + mkdir(strtolower(dirname($file)), 0644, true); } file_put_contents($file, $content); diff --git a/library/think/template/driver/File.php b/library/think/template/driver/File.php index 1cf98a27..a049d683 100644 --- a/library/think/template/driver/File.php +++ b/library/think/template/driver/File.php @@ -26,7 +26,7 @@ class File // 检测模板目录 $dir = dirname($cacheFile); if (!is_dir($dir)) { - mkdir($dir, 0777, true); + mkdir($dir, 0644, true); } // 生成模板缓存文件 if (false === file_put_contents($cacheFile, $content)) {