mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 22:35:38 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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",
|
||||
|
||||
Reference in New Issue
Block a user