update loginout
This commit is contained in:
parent
66b1001d14
commit
116b162731
|
@ -44,12 +44,13 @@ class LoginController extends BaseApiController
|
|||
// 退出
|
||||
public function logout(): Json
|
||||
{
|
||||
$result = LoginLogic::logout($this->userInfo);
|
||||
if($result){
|
||||
return $this->success('成功');
|
||||
}else{
|
||||
return $this->fail('失败');
|
||||
}
|
||||
return $this->success('成功');
|
||||
// $result = LoginLogic::logout($this->userInfo);
|
||||
// if($result){
|
||||
// return $this->success('成功');
|
||||
// }else{
|
||||
// return $this->fail('失败');
|
||||
// }
|
||||
}
|
||||
|
||||
// 验证token
|
||||
|
|
Loading…
Reference in New Issue