From 77c02e03d8049d479baf02dc419cf8918bdd17c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Mon, 5 Sep 2022 00:36:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=20`cookies`=20=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/adduser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/genshin/adduser.py b/plugins/genshin/adduser.py index a780745c..e84917eb 100644 --- a/plugins/genshin/adduser.py +++ b/plugins/genshin/adduser.py @@ -87,7 +87,7 @@ class AddUser(BasePlugins): await update.message.reply_text("退出任务", reply_markup=ReplyKeyboardRemove()) return ConversationHandler.END elif update.message.text == "米游社": - add_user_command_data.service = RegionEnum.HYPERION + add_user_command_data.region = RegionEnum.HYPERION bbs_url = "https://bbs.mihoyo.com/ys/" bbs_name = "米游社" if user_info is not None: @@ -95,7 +95,7 @@ class AddUser(BasePlugins): elif update.message.text == "HoYoLab": bbs_url = "https://www.hoyolab.com/home" bbs_name = "HoYoLab" - add_user_command_data.service = RegionEnum.HOYOLAB + add_user_command_data.region = RegionEnum.HOYOLAB if user_info is not None: await update.message.reply_text("警告,你已经绑定Cookie,如果继续操作会覆盖当前Cookie。") else: