123
This commit is contained in:
parent
9e88a441d7
commit
eb514d4faf
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user