From 8cdb18bb0bfb109d23181a6ec898fbbf0942e23d Mon Sep 17 00:00:00 2001 From: weiz Date: Sat, 25 Nov 2023 09:58:49 +0800 Subject: [PATCH] loginout fixed --- app/api/controller/LoginController.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/api/controller/LoginController.php b/app/api/controller/LoginController.php index 890e402b..ed7a857a 100644 --- a/app/api/controller/LoginController.php +++ b/app/api/controller/LoginController.php @@ -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