update to 2.0.1 version

fix swoole log file "no such file or directory" error
This commit is contained in:
crazywhalecc 2020-12-23 11:16:24 +08:00
parent d80de2a552
commit 44337d2ad4
2 changed files with 7 additions and 3 deletions

View File

@ -3,8 +3,8 @@
"description": "High performance QQ robot and web server development framework",
"minimum-stability": "stable",
"license": "Apache-2.0",
"version": "2.0.0",
"extra": {},
"version": "2.0.1",
"extra": [],
"authors": [
{
"name": "whale",
@ -59,4 +59,4 @@
"phpunit/phpunit": "^9.3",
"swoole/ide-helper": "@dev"
}
}
}

View File

@ -54,6 +54,10 @@ class Framework
}
ZMAtomic::init();
try {
$sw = ZMConfig::get("global");
if(!is_dir($sw["zm_data"])) mkdir($sw["zm_data"]);
if(!is_dir($sw["config_dir"])) mkdir($sw["config_dir"]);
if(!is_dir($sw["crash_dir"])) mkdir($sw["crash_dir"]);
ManagerGM::init(ZMConfig::get("global", "swoole")["max_connection"] ?? 2048, 0.5, [
[
"key" => "connect_id",