@@ -320,6 +320,8 @@ class Auth
$this->_user = $user;
$this->_token = Random::uuid();
+
+ Token::clear($user->id);//清空Token,单点登录
Token::set($this->_token, $user->id, $this->keeptime);
$this->_logined = true;
@@ -363,6 +363,8 @@ class Authworker
+ Tokenworker::clear($user->id);//清空Token,单点登录
Tokenworker::set($this->_token, $user->id, $this->keeptime);