diff --git a/models/relic_affix.py b/models/relic_affix.py index 3a6ba01..dbe9165 100644 --- a/models/relic_affix.py +++ b/models/relic_affix.py @@ -3,7 +3,7 @@ from typing import Optional, Dict from pydantic import BaseModel, root_validator -from models.enums import RelicAffix +from .enums import RelicAffix class SingleRelicAffix(BaseModel): @@ -22,6 +22,8 @@ class SingleRelicAffix(BaseModel): class RelicAffixAll(BaseModel): id: int + set_id: int + """ 套装ID """ main_affix_group: int sub_affix_group: int max_level: int diff --git a/res_func/relic.py b/res_func/relic.py index 3b62634..5443d76 100644 --- a/res_func/relic.py +++ b/res_func/relic.py @@ -21,6 +21,7 @@ async def fetch_all_relic(): for key, value in relic_data.items(): relic_affix_all = RelicAffixAll( id=int(key), + set_id=value["SetID"], main_affix_group=value["MainAffixGroup"], sub_affix_group=value["SubAffixGroup"], max_level=value["MaxLevel"],