123
This commit is contained in:
parent
9e88a441d7
commit
eb514d4faf
@ -190,12 +190,12 @@ class Userinfo extends BaseController
|
|||||||
// $ret = $this->auth->login($user['username'], '');
|
// $ret = $this->auth->login($user['username'], '');
|
||||||
// if ($ret) {
|
// if ($ret) {
|
||||||
//创建新Token
|
//创建新Token
|
||||||
$token = $this->getToken($user['id']);
|
// $token = $this->getToken($user['id']);
|
||||||
\app\common\library\Token::set($token, $user['id'], 2592000);
|
// \app\common\library\Token::set($token, $user['id'], 2592000);
|
||||||
$tokenInfo = \app\common\library\Token::get($token);
|
// $tokenInfo = \app\common\library\Token::get($token);
|
||||||
|
// $Userinfo['token'] = $tokenInfo['token'];
|
||||||
|
// $Userinfo['expires_in'] = $tokenInfo['expires_in'];
|
||||||
$Userinfo = $user;
|
$Userinfo = $user;
|
||||||
$Userinfo['token'] = $tokenInfo['token'];
|
|
||||||
$Userinfo['expires_in'] = $tokenInfo['expires_in'];
|
|
||||||
$Userinfo['user_id'] = $post['user_id'];
|
$Userinfo['user_id'] = $post['user_id'];
|
||||||
$userinfo_data['userinfo'] = $Userinfo;
|
$userinfo_data['userinfo'] = $Userinfo;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user