|
|
@@ -139,10 +139,6 @@ class UserAuth extends User {
|
|
|
$accessTokenResult = $this->updateToken($userToken, $appType = 'pc', $typeToken = 'access', $userId);
|
|
|
$refreshTokenResult = $this->updateToken($userToken, $appType = 'pc', $typeToken = 'refresh', $userId);
|
|
|
if ($accessTokenResult && $refreshTokenResult) {
|
|
|
-
|
|
|
- // 把用户的登录时间存在操作时间里
|
|
|
- Yii::$app->tokenRedis->hset('user:timeOut', $userId, time());
|
|
|
-
|
|
|
return $this->getToken();
|
|
|
} else {
|
|
|
return null;
|