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