fix: 修复账号解绑bug

This commit is contained in:
Ying
2023-06-23 17:46:05 +08:00
parent 7b2d408745
commit b4b73ac2aa
3 changed files with 1 additions and 4 deletions

View File

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