From b4b73ac2aacc096a83a2670366adfde754745879 Mon Sep 17 00:00:00 2001 From: Ying Date: Fri, 23 Jun 2023 17:46:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E8=A7=A3=E7=BB=91bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/user/UserService.php | 1 - app/index/controller/Third.php | 3 +-- app/index/middleware/system/IndexPermissions.php | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/common/service/user/UserService.php b/app/common/service/user/UserService.php index b97a323..130ba0e 100644 --- a/app/common/service/user/UserService.php +++ b/app/common/service/user/UserService.php @@ -237,7 +237,6 @@ class UserService /** * 退出登录 * @return void - * @throws InvalidArgumentException */ public static function logout(): void { diff --git a/app/index/controller/Third.php b/app/index/controller/Third.php index ac5484b..ab32380 100644 --- a/app/index/controller/Third.php +++ b/app/index/controller/Third.php @@ -211,13 +211,12 @@ class Third extends HomeController } $where['type'] = $this->type; - $where['user_id'] = request()->cookie('uid'); + $where['user_id'] = request()->userId; if (UserThird::where($where)->delete()) { return $this->success('解除绑定成功!'); } } - return $this->error(); } diff --git a/app/index/middleware/system/IndexPermissions.php b/app/index/middleware/system/IndexPermissions.php index 9e11db3..934b096 100644 --- a/app/index/middleware/system/IndexPermissions.php +++ b/app/index/middleware/system/IndexPermissions.php @@ -66,7 +66,6 @@ class IndexPermissions implements MiddlewareInterface $userInfo = UserTokenService::isLogin(); if (!empty($userInfo)) { if (in_array($action, $this->repeatLogin)) { - var_dump($this->JumpUrl); return redirect($this->JumpUrl); }