Commit 211c35dd by HanSon

path不存在时message.json存储失败

1 parent 2bd2ca6c
...@@ -24,6 +24,12 @@ class System ...@@ -24,6 +24,12 @@ class System
public static function getPath() public static function getPath()
{ {
return server()->config['tmp'] . '/' . myself()->alias . '/'; $path = server()->config['tmp'] . '/' . myself()->alias . '/';
if(!is_dir(realpath($path))){
mkdir($path, 0700, true);
}
return $path;
} }
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!