fix: 修复账号解绑bug
This commit is contained in:
@@ -237,7 +237,6 @@ class UserService
|
||||
/**
|
||||
* 退出登录
|
||||
* @return void
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public static function logout(): void
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user