This commit is contained in:
彭桃 2023-01-30 17:50:17 +08:00
parent 9e88a441d7
commit eb514d4faf

View File

@ -190,12 +190,12 @@ class Userinfo extends BaseController
// $ret = $this->auth->login($user['username'], '');
// if ($ret) {
//创建新Token
$token = $this->getToken($user['id']);
\app\common\library\Token::set($token, $user['id'], 2592000);
$tokenInfo = \app\common\library\Token::get($token);
// $token = $this->getToken($user['id']);
// \app\common\library\Token::set($token, $user['id'], 2592000);
// $tokenInfo = \app\common\library\Token::get($token);
// $Userinfo['token'] = $tokenInfo['token'];
// $Userinfo['expires_in'] = $tokenInfo['expires_in'];
$Userinfo = $user;
$Userinfo['token'] = $tokenInfo['token'];
$Userinfo['expires_in'] = $tokenInfo['expires_in'];
$Userinfo['user_id'] = $post['user_id'];
$userinfo_data['userinfo'] = $Userinfo;