Compare commits

...

1 Commits
2.0.0 ... 2.0.1

Author SHA1 Message Date
crazywhalecc
44337d2ad4 update to 2.0.1 version
fix swoole log file "no such file or directory" error
2020-12-23 11:16:24 +08:00
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", "description": "High performance QQ robot and web server development framework",
"minimum-stability": "stable", "minimum-stability": "stable",
"license": "Apache-2.0", "license": "Apache-2.0",
"version": "2.0.0", "version": "2.0.1",
"extra": {}, "extra": [],
"authors": [ "authors": [
{ {
"name": "whale", "name": "whale",
@@ -59,4 +59,4 @@
"phpunit/phpunit": "^9.3", "phpunit/phpunit": "^9.3",
"swoole/ide-helper": "@dev" "swoole/ide-helper": "@dev"
} }
} }

View File

@@ -54,6 +54,10 @@ class Framework
} }
ZMAtomic::init(); ZMAtomic::init();
try { 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, [ ManagerGM::init(ZMConfig::get("global", "swoole")["max_connection"] ?? 2048, 0.5, [
[ [
"key" => "connect_id", "key" => "connect_id",