mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-08 04:55:47 +08:00
🐛 修复model
This commit is contained in:
parent
81d5a65701
commit
0a4a14ff22
@ -230,8 +230,8 @@ class AbyssData(Struct):
|
|||||||
max_floor: str
|
max_floor: str
|
||||||
battle_num: int
|
battle_num: int
|
||||||
has_data: bool
|
has_data: bool
|
||||||
max_floor_detail: bool
|
|
||||||
all_floor_detail: List[AbyssFloorDetail]
|
all_floor_detail: List[AbyssFloorDetail]
|
||||||
|
max_floor_detail: bool | None = None
|
||||||
|
|
||||||
|
|
||||||
################
|
################
|
||||||
|
@ -68,7 +68,6 @@ async def api_to_dict(
|
|||||||
file.write(msgjson.format(msgjson.encode(PlayerDetailInfo), indent=4))
|
file.write(msgjson.format(msgjson.encode(PlayerDetailInfo), indent=4))
|
||||||
with Path.open(path / 'rawData.json', 'wb') as file:
|
with Path.open(path / 'rawData.json', 'wb') as file:
|
||||||
file.write(msgjson.format(msgjson.encode(sr_data), indent=4))
|
file.write(msgjson.format(msgjson.encode(sr_data), indent=4))
|
||||||
# json.dump(sr_data, file, ensure_ascii=False)
|
|
||||||
|
|
||||||
if sr_data.detailInfo is None:
|
if sr_data.detailInfo is None:
|
||||||
return f'SR_UID{sr_uid}刷新失败!未打开角色展柜!'
|
return f'SR_UID{sr_uid}刷新失败!未打开角色展柜!'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user