mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
🐛 fix get public cookies
This commit is contained in:
parent
b590463699
commit
401e55f4bc
@ -82,7 +82,7 @@ class PublicCookiesService:
|
||||
else:
|
||||
raise CookieServiceError
|
||||
try:
|
||||
record_card = await client.get_record_card()
|
||||
record_card = (await client.get_record_cards())[0]
|
||||
if record_card.game == Game.GENSHIN and region == RegionEnum.HYPERION:
|
||||
await client.get_partial_genshin_user(record_card.uid)
|
||||
except InvalidCookies as exc:
|
||||
|
@ -125,7 +125,7 @@ class SetUserUid(Plugin.Conversation, BasePlugin.Conversation):
|
||||
else:
|
||||
return ConversationHandler.END
|
||||
try:
|
||||
user_info = await client.get_record_card(hoyolab_uid)
|
||||
user_info = (await client.get_record_cards(hoyolab_uid))[0]
|
||||
except DataNotPublic:
|
||||
await message.reply_text("角色未公开", reply_markup=ReplyKeyboardRemove())
|
||||
logger.warning(f"获取账号信息发生错误 hoyolab_uid[{hoyolab_uid}] 账户信息未公开")
|
||||
|
Loading…
Reference in New Issue
Block a user