mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-28 13:21:37 +08:00
积分机制阶段合并
This commit is contained in:
parent
62964bbd95
commit
3e2f80e648
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user