CheckLoginWithGeneralID()
를 직접 Session 클래스를 접근하는 방식으로 변경.
This commit is contained in:
@@ -187,7 +187,6 @@ class Session {
|
||||
}
|
||||
|
||||
$serverID = UniqueConst::$serverID;
|
||||
$db = DB::db();
|
||||
|
||||
$loginDate = $this->get($serverID.static::GAME_KEY_DATE);
|
||||
$generalID = $this->get($serverID.static::GAME_KEY_GENERAL_ID);
|
||||
@@ -197,9 +196,9 @@ class Session {
|
||||
$now = time();
|
||||
if(
|
||||
$generalID && $generalName && $loginDate && $deadTime
|
||||
&& $loginDate + 600 > $now && $deadTime > $now
|
||||
&& $loginDate + 1800 > $now && $deadTime > $now
|
||||
){
|
||||
//로그인 정보는 10분간 유지한다.
|
||||
//로그인 정보는 30분간 유지한다.
|
||||
if($result !== null){
|
||||
$result = true;
|
||||
}
|
||||
@@ -210,6 +209,8 @@ class Session {
|
||||
$this->logoutGame();
|
||||
}
|
||||
|
||||
$db = DB::db();
|
||||
|
||||
$general = $db->queryFirstRow(
|
||||
'SELECT `no`, `name`, `killturn`, `turntime` from general where `owner` = %i',
|
||||
$userID
|
||||
|
||||
Reference in New Issue
Block a user