하드리셋 시 UniqueConst가 없어져 세션에서 generalID, generalName을 확인할 수 없는 문제 수정
This commit is contained in:
@@ -141,9 +141,15 @@ class Session
|
|||||||
public function __get(string $name)
|
public function __get(string $name)
|
||||||
{
|
{
|
||||||
if ($name == 'generalID') {
|
if ($name == 'generalID') {
|
||||||
|
if (!class_exists('\\sammo\\UniqueConst')){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return $this->get(UniqueConst::$serverID.static::GAME_KEY_GENERAL_ID);
|
return $this->get(UniqueConst::$serverID.static::GAME_KEY_GENERAL_ID);
|
||||||
}
|
}
|
||||||
if ($name == 'generalName') {
|
if ($name == 'generalName') {
|
||||||
|
if (!class_exists('\\sammo\\UniqueConst')){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return $this->get(UniqueConst::$serverID.static::GAME_KEY_GENERAL_NAME);
|
return $this->get(UniqueConst::$serverID.static::GAME_KEY_GENERAL_NAME);
|
||||||
}
|
}
|
||||||
return $this->get($name);
|
return $this->get($name);
|
||||||
|
|||||||
Reference in New Issue
Block a user