Browse Source

mkdir 权限问题

huwhois 4 years ago
parent
commit
0da67eaa97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/Index.php

+ 1 - 1
application/Index.php

@ -59,7 +59,7 @@ class Index extends View
59 59
        
60 60
        $dir_name = DATA_PATH . $pathinfo['dirname'];
61 61
62
        if (!is_dir($dir_name) && !mkdir($dir_name, '0777', true)) {
62
        if (!is_dir($dir_name) && !mkdir($dir_name, 0744, true)) {
63 63
            die(json_encode(['code'=>2, 'msg'=>'目录创建失败']));
64 64
        }
65 65