fix: Session에서 로그인 정보를 세심히.
This commit is contained in:
@@ -234,6 +234,8 @@ class Session
|
|||||||
|
|
||||||
$serverID = UniqueConst::$serverID;
|
$serverID = UniqueConst::$serverID;
|
||||||
|
|
||||||
|
$globalLoginDate = $this->get('time');
|
||||||
|
|
||||||
$loginDate = $this->get($serverID.static::GAME_KEY_DATE);
|
$loginDate = $this->get($serverID.static::GAME_KEY_DATE);
|
||||||
$generalID = $this->get($serverID.static::GAME_KEY_GENERAL_ID);
|
$generalID = $this->get($serverID.static::GAME_KEY_GENERAL_ID);
|
||||||
$generalName = $this->get($serverID.static::GAME_KEY_GENERAL_NAME);
|
$generalName = $this->get($serverID.static::GAME_KEY_GENERAL_NAME);
|
||||||
@@ -241,6 +243,7 @@ class Session
|
|||||||
|
|
||||||
$now = time();
|
$now = time();
|
||||||
if (
|
if (
|
||||||
|
$globalLoginDate < $loginDate &&
|
||||||
$generalID && $generalName && $loginDate && $deadTime
|
$generalID && $generalName && $loginDate && $deadTime
|
||||||
&& $loginDate + 1800 > $now && $deadTime > $now
|
&& $loginDate + 1800 > $now && $deadTime > $now
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user