1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-12-15 09:36:43 +00:00

update, add virtual cluster management

This commit is contained in:
2019-08-01 09:48:20 +08:00
parent e80c7f37f2
commit 8aa7c6dd26
3 changed files with 68 additions and 31 deletions

View File

@@ -37,7 +37,7 @@ class CRObject implements JsonSerializable
public function getBool($key, $default = false)
{
if (isset($this->map[$key]) && !is_null($this->map[$key])) {
return $this->map[$key] === true;
return $this->map[$key] === true || $this->map[$key] === 'true';
}
return $default === true;
}
@@ -64,6 +64,6 @@ class CRObject implements JsonSerializable
public function jsonSerialize()
{
return $this->toArray();
}
}
}