1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-28 21:31:37 +08:00

积分机制阶段合并

This commit is contained in:
winzer 2021-02-13 19:14:57 +08:00
parent 62964bbd95
commit 3e2f80e648
2 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,11 @@ class Api extends AuthService
{ {
$token = $this->generateToken($user->id); $token = $this->generateToken($user->id);
/**
* demo版本不限制多人登录
*/
// $this->logoutOtherClients($user->id);
$this->logoutOtherClients($user->id); $this->logoutOtherClients($user->id);
$this->createUserToken($user->id, $token); $this->createUserToken($user->id, $token);

View File

@ -17,6 +17,11 @@ class Home extends AuthService
{ {
$sessionId = $this->session->getId(); $sessionId = $this->session->getId();
/**
* demo版本不限制多人登录
*/
// $this->logoutOtherClients($user->id);
$this->logoutOtherClients($user->id); $this->logoutOtherClients($user->id);
$this->createUserSession($user->id, $sessionId); $this->createUserSession($user->id, $sessionId);