Commit b8c48e08 by HanSon Committed by GitHub

Merge pull request #33 from HanSon/dev

path不存在时message.json存储失败
2 parents 9c20350c 211c35dd
...@@ -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!