From 6c35b49c88feef45360460295efa3c37a1ca14d9 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 20 Aug 2024 15:24:27 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseAuthedController.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index d96f4a9b..abb97150 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -67,13 +67,18 @@ class BaseAuthedController extends BaseController { public function switchAccount($accountId){ $this->accountId = $accountId; + $this->address = null; $this->addressActived = false; $this->mysqlConn = null; + $this->redisConn = null; } public function switchOnlineAccount($accountId){ $this->accountId = $accountId; + $this->address = null; + $this->addressActived = false; $this->mysqlConn = null; + $this->redisConn = null; $r = $this->_getRedis($this->_getAccountId()); $this->sessionId = $r->get(LAST_SESSION_KEY . $this->_getAccountId()); return !empty($this->sessionId);