🐛 Fix client unable to get CharacterRanks data

Previously, the client could not retrieve `CharacterRanks` data from the `client.get_spiral_abyss()` function if the app was not browsed first.
This commit is contained in:
洛水居室 2023-07-20 12:14:30 +08:00
parent aa9ddfc267
commit 5261c7534c
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -139,6 +139,7 @@ class AbyssPlugin(Plugin):
try:
try:
async with self.helper.genshin(user.id) as client:
await client.get_record_cards()
images = await self.get_rendered_pic(client, client.player_id, floor, total, previous)
except CookiesNotFoundError:
# Cookie 不存在使用公开接口