1
This commit is contained in:
parent
ad91b18618
commit
fe297c713b
@ -2,6 +2,8 @@
|
||||
|
||||
define('TEAMID_KEY', 'team_uuid:');
|
||||
|
||||
define('LAST_SESSION_KEY', 'team_uuid:');
|
||||
|
||||
define('V_ITEM_GOLD', 10001); //金币
|
||||
define('V_ITEM_DIAMOND', 10002); //钻石
|
||||
define('V_ITEM_EXP', 10003); //经验
|
||||
|
@ -50,7 +50,7 @@ class BaseAuthedController extends BaseController {
|
||||
protected function updateSession($accountId, $sessionId)
|
||||
{
|
||||
$r = $this->_getRedis($this->_getAccountId());
|
||||
$r->set(LAST_SESSION_KEY . $this->_getAccountId());
|
||||
$r->set(LAST_SESSION_KEY . $this->_getAccountId(), $sessionId);
|
||||
$r->pexpire(LAST_SESSION_KEY . $this->_getAccountId(), 3600 * 24);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user