diff --git a/app/Services/Auth/Api.php b/app/Services/Auth/Api.php index e1cf4a2c..6a13f3df 100644 --- a/app/Services/Auth/Api.php +++ b/app/Services/Auth/Api.php @@ -17,7 +17,10 @@ class Api extends AuthService { $token = $this->generateToken($user->id); - $this->logoutOtherClients($user->id); + /** + * demo版本不限制多人登录 + */ + // $this->logoutOtherClients($user->id); $this->createUserToken($user->id, $token); diff --git a/app/Services/Auth/Home.php b/app/Services/Auth/Home.php index 6cafc47d..be023728 100644 --- a/app/Services/Auth/Home.php +++ b/app/Services/Auth/Home.php @@ -17,7 +17,10 @@ class Home extends AuthService { $sessionId = $this->session->getId(); - $this->logoutOtherClients($user->id); + /** + * demo版本不限制多人登录 + */ + // $this->logoutOtherClients($user->id); $this->createUserSession($user->id, $sessionId);