mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 21:24:52 +08:00
update to 2.2.1 version
fix a compatibility bug
This commit is contained in:
parent
484ddf9dfa
commit
8a985620f9
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user