This commit is contained in:
aozhiwei 2024-08-20 15:24:27 +08:00
parent 5bf24ca939
commit 6c35b49c88

View File

@ -67,13 +67,18 @@ class BaseAuthedController extends BaseController {
public function switchAccount($accountId){ public function switchAccount($accountId){
$this->accountId = $accountId; $this->accountId = $accountId;
$this->address = null;
$this->addressActived = false; $this->addressActived = false;
$this->mysqlConn = null; $this->mysqlConn = null;
$this->redisConn = null;
} }
public function switchOnlineAccount($accountId){ public function switchOnlineAccount($accountId){
$this->accountId = $accountId; $this->accountId = $accountId;
$this->address = null;
$this->addressActived = false;
$this->mysqlConn = null; $this->mysqlConn = null;
$this->redisConn = null;
$r = $this->_getRedis($this->_getAccountId()); $r = $this->_getRedis($this->_getAccountId());
$this->sessionId = $r->get(LAST_SESSION_KEY . $this->_getAccountId()); $this->sessionId = $r->get(LAST_SESSION_KEY . $this->_getAccountId());
return !empty($this->sessionId); return !empty($this->sessionId);