Skip to content

Commit

Permalink
🐛 修复查询特定层数gs深渊
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Oct 16, 2024
1 parent f51bf95 commit 9dbfa8e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions GenshinUID/genshinuid_abyss/draw_abyss_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,13 @@ async def draw_abyss_img(
floors_data = _floor_data
break
else:
return '你还没有挑战过该层深渊!'
floors_data = raw_abyss_data['floors'][floor]
if (
raw_abyss_data['floors']
and floor < raw_abyss_data['floors'][0]['index']
):
return '你本期已跳过该层深渊!'
else:
return '你还没有挑战过该层深渊!'
else:
if len(raw_abyss_data['floors']) == 0:
return '你还没有挑战本期深渊!\n可以使用[上期深渊]命令查询上期~'
Expand Down

0 comments on commit 9dbfa8e

Please sign in to comment.