🐛 修复绑定 cookies 异常

This commit is contained in:
洛水居室 2022-09-05 00:36:00 +08:00
parent 9261232c56
commit 77c02e03d8
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -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: