🐛 修复字段问题

This commit is contained in:
qwerdvd 2023-08-31 14:39:29 +08:00
parent dbd971fd59
commit 333541a361
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class Relic(TypedDict):
class SubAffix(TypedDict):
affixID: int
affixId: int
cnt: int
step: int

View File

@ -222,10 +222,10 @@ async def get_data(char: Avatar, sr_data: MihomoData, sr_uid: str):
if relic.get('subAffixList'):
for sub_affix in relic['subAffixList']:
sub_affix_temp = {}
sub_affix_temp['SubAffixID'] = sub_affix['affixID']
sub_affix_temp['SubAffixID'] = sub_affix['affixId']
sub_affix_property, value = await cal_relic_sub_affix(
relic_id=relic['tid'],
affix_id=sub_affix['affixID'],
affix_id=sub_affix['affixId'],
cnt=sub_affix['cnt'],
step=sub_affix['step'] if 'step' in sub_affix else 0,
)