CheckLoginWithGeneralID()

를 직접 Session 클래스를 접근하는 방식으로 변경.
This commit is contained in:
2018-04-05 00:55:22 +09:00
parent 65171b4413
commit fae86dbff8
62 changed files with 66 additions and 85 deletions
+4 -3
View File
@@ -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