mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
update to 2.0.1 version
fix swoole log file "no such file or directory" error
This commit is contained in:
parent
d80de2a552
commit
44337d2ad4
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user