mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
🐛 修复深渊图标问题
This commit is contained in:
parent
df45f5f943
commit
5b6631f9e5
@ -5,7 +5,7 @@ from pydantic import BaseModel
|
|||||||
from tortoise import fields
|
from tortoise import fields
|
||||||
from tortoise.models import Model
|
from tortoise.models import Model
|
||||||
|
|
||||||
from LittlePaimon.utils.alias import get_name_by_id
|
from LittlePaimon.utils.alias import get_name_by_id, get_chara_icon
|
||||||
from .player_info import PlayerInfo
|
from .player_info import PlayerInfo
|
||||||
|
|
||||||
|
|
||||||
@ -232,13 +232,13 @@ class AbyssInfo(Model):
|
|||||||
battles_up.append(AbyssCharacters(characters=[AbyssCharacter(
|
battles_up.append(AbyssCharacters(characters=[AbyssCharacter(
|
||||||
name=get_name_by_id(c['id']),
|
name=get_name_by_id(c['id']),
|
||||||
character_id=c['id'],
|
character_id=c['id'],
|
||||||
icon=c['icon'].split('/')[-1].replace('.png', ''),
|
icon=get_chara_icon(chara_id=c['id']),
|
||||||
rarity=c['rarity'],
|
rarity=c['rarity'],
|
||||||
level=c['level']) for c in level['battles'][0]['avatars']]))
|
level=c['level']) for c in level['battles'][0]['avatars']]))
|
||||||
battles_down.append(AbyssCharacters(characters=[AbyssCharacter(
|
battles_down.append(AbyssCharacters(characters=[AbyssCharacter(
|
||||||
name=get_name_by_id(c['id']),
|
name=get_name_by_id(c['id']),
|
||||||
character_id=c['id'],
|
character_id=c['id'],
|
||||||
icon=c['icon'].split('/')[-1].replace('.png', ''),
|
icon=get_chara_icon(chara_id=c['id']),
|
||||||
rarity=c['rarity'],
|
rarity=c['rarity'],
|
||||||
level=c['level']) for c in level['battles'][1]['avatars']]))
|
level=c['level']) for c in level['battles'][1]['avatars']]))
|
||||||
floor_info.battles_up = battles_up
|
floor_info.battles_up = battles_up
|
||||||
|
Loading…
Reference in New Issue
Block a user