|
...
|
...
|
@@ -53,13 +53,14 @@ class LoginLogic extends BaseLogic |
|
|
|
Cache::add(Common::MANAGE_TOKEN . $token,$manage);
|
|
|
|
//更新用户信息
|
|
|
|
$manage->token = $token;
|
|
|
|
$data = $manage;
|
|
|
|
unset($manage['special']);
|
|
|
|
$res = $manage->save();
|
|
|
|
if(!$res){
|
|
|
|
$this->fail('系统错误,请联系管理员');
|
|
|
|
}
|
|
|
|
LoginLog::addLog($manage->id);
|
|
|
|
return $this->success($manage->makeVisible('token')->toArray());
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function logout(){
|
...
|
...
|
|