From ce86bc49a7cff81b8490007b1846b7dbbd9a07c8 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Sat, 2 Jan 2021 14:41:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=99=90=E5=88=B6=E5=85=B1?= =?UTF-8?q?=E4=BA=AB=E5=B8=90=E5=8F=B7=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Auth/Api.php | 5 ++++- app/Services/Auth/Home.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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);