提交 53274aeb 编写于 作者: lzc828's avatar lzc828

644

上级 84ae482b
...@@ -16,7 +16,7 @@ class File extends Cache ...@@ -16,7 +16,7 @@ class File extends Cache
private function mkdir() private function mkdir()
{ {
if (!is_dir(self::$conf['path'])) { if (!is_dir(self::$conf['path'])) {
mkdir(self::$conf['path'], 0755, true); mkdir(self::$conf['path'], 0644, true);
} }
} }
......
...@@ -71,7 +71,7 @@ class Log ...@@ -71,7 +71,7 @@ class Log
private function _log($mixed, $k = 0, $code = 3, $prefix = 'vic') private function _log($mixed, $k = 0, $code = 3, $prefix = 'vic')
{ {
if (!is_dir(self::$conf['path'])) { if (!is_dir(self::$conf['path'])) {
mkdir(self::$conf['path'], 0755, true); mkdir(self::$conf['path'], 0644, true);
} }
$path = self::$conf['path'] . '/' . $prefix . '-' . date('Y-m-d') . '.log'; $path = self::$conf['path'] . '/' . $prefix . '-' . date('Y-m-d') . '.log';
if (is_string($mixed)) { if (is_string($mixed)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册