update to version 2.5.5 (buid 422)

This commit is contained in:
crazywhalecc
2021-10-06 18:01:40 +08:00
parent 7dbd21bdf4
commit beaf7be606
6 changed files with 12 additions and 20 deletions

View File

@@ -156,7 +156,7 @@ class Framework
if (isset($this->server_set["task_worker_num"])) {
$out["task_worker"] = $this->server_set["task_worker_num"];
}
if (ZMConfig::get("global", "sql_config")["sql_host"] !== "") {
if ((ZMConfig::get("global", "sql_config")["sql_host"] ?? "") !== "") {
$conf = ZMConfig::get("global", "sql_config");
$out["mysql_pool"] = $conf["sql_database"] . "@" . $conf["sql_host"] . ":" . $conf["sql_port"];
}