From 8c12237e85872e287e0651b8c37ef7c826799606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Wed, 19 Oct 2022 19:03:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E9=82=80=E8=AF=B7=E8=AF=86=E5=88=AB=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/system/new_member.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/system/new_member.py b/plugins/system/new_member.py index f035777..04fafa7 100644 --- a/plugins/system/new_member.py +++ b/plugins/system/new_member.py @@ -46,8 +46,8 @@ class BotJoiningGroupsVerification(Plugin): logger.error(f"获取信息出现错误 {repr(exc)}") elif config.join_groups == JoinGroups.ALLOW_AUTH_USER: try: - user_info = await self.user_service.get_user_by_id(chat.id) - await self.cookies_service.get_cookies(user_info.user_id, user_info.region) + user_info = await self.user_service.get_user_by_id(from_user.id) + await self.cookies_service.get_cookies(from_user.id, user_info.region) except (UserNotFoundError, CookiesNotFoundError): logger.warning(f"用户 {from_user.full_name}[{from_user.id}] 邀请请求被拒绝") except Exception as exc: