Compare commits

..

2 Commits
2.2.0 ... 2.2.1

Author SHA1 Message Date
jerry
a55cd4ed05 update docs 2021-01-29 21:37:02 +08:00
jerry
8a985620f9 update to 2.2.1 version
fix a compatibility bug
2021-01-29 21:36:14 +08:00
3 changed files with 8 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
"description": "High performance QQ robot and web server development framework",
"minimum-stability": "stable",
"license": "Apache-2.0",
"version": "2.2.0",
"version": "2.2.1",
"extra": {
"exclude_annotate": [
"src/ZM"

View File

@@ -1,5 +1,11 @@
# 更新日志v2 版本)
## v2.2.1
> 更新时间2021.1.29
- 修复:配置文件兼容性问题
## v2.2.0
> 更新时间2021.1.29

View File

@@ -15,7 +15,7 @@ class WorkerCache
public static $transfer = [];
public static function get($key) {
$config = self::$config ?? ZMConfig::get("global", "worker_cache");
$config = self::$config ?? ZMConfig::get("global", "worker_cache") ?? ["worker" => 0];
if ($config["worker"] === server()->worker_id) {
return self::$store[$key] ?? null;
} else {