From b5fad5cf66ae0ad2517a1c2d7cc646bb57f4c6ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Fri, 9 Sep 2022 19:30:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20`cookies`?= =?UTF-8?q?=20=E6=95=B0=E6=8D=AE=E6=97=B6=E5=86=99=E5=85=A5=E5=89=8D?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E4=BF=A1=E6=81=AF=E5=88=A4=E6=96=AD=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=80=BB=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/cookies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/genshin/cookies.py b/plugins/genshin/cookies.py index e85f02a..d9a8a05 100644 --- a/plugins/genshin/cookies.py +++ b/plugins/genshin/cookies.py @@ -24,7 +24,7 @@ from utils.models.base import RegionEnum class AddUserCommandData(TelegramObject): user: Optional[User] = None cookies_database_data: Optional[Cookies] = None - region: RegionEnum = RegionEnum.HYPERION + region: RegionEnum = RegionEnum.NULL cookies: dict = {} game_uid: int = 0 @@ -84,7 +84,7 @@ class SetUserCookies(Plugin.Conversation, BasePlugin.Conversation): user_info = None if user_info is not None: try: - cookies_database_data = await self.cookies_service.get_cookies(user.id, add_user_command_data.region) + cookies_database_data = await self.cookies_service.get_cookies(user.id, region) add_user_command_data.cookies_database_data = cookies_database_data except CookiesNotFoundError: await message.reply_text("你已经绑定UID,如果继续操作会覆盖当前UID。")