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); }