update loginout #37

Merged
weiz merged 1 commits from zhangwei into dev 2023-11-25 10:09:23 +08:00
1 changed files with 7 additions and 6 deletions

View File

@ -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