mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-14 04:05:35 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a55cd4ed05 | ||
|
|
8a985620f9 |
@@ -3,7 +3,7 @@
|
|||||||
"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.2.0",
|
"version": "2.2.1",
|
||||||
"extra": {
|
"extra": {
|
||||||
"exclude_annotate": [
|
"exclude_annotate": [
|
||||||
"src/ZM"
|
"src/ZM"
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# 更新日志(v2 版本)
|
# 更新日志(v2 版本)
|
||||||
|
|
||||||
|
## v2.2.1
|
||||||
|
|
||||||
|
> 更新时间:2021.1.29
|
||||||
|
|
||||||
|
- 修复:配置文件兼容性问题
|
||||||
|
|
||||||
## v2.2.0
|
## v2.2.0
|
||||||
|
|
||||||
> 更新时间:2021.1.29
|
> 更新时间:2021.1.29
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class WorkerCache
|
|||||||
public static $transfer = [];
|
public static $transfer = [];
|
||||||
|
|
||||||
public static function get($key) {
|
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) {
|
if ($config["worker"] === server()->worker_id) {
|
||||||
return self::$store[$key] ?? null;
|
return self::$store[$key] ?? null;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user