feat: overview额外返回资源关信息

This commit is contained in:
DLmaster361
2025-08-27 15:37:56 +08:00
parent 331e0b55ee
commit 4c2a6407a1
5 changed files with 526 additions and 398 deletions

View File

@@ -40,7 +40,11 @@ async def get_stage_combox(
try:
raw_data = await Config.get_stage_info(stage.type)
data = [ComboBoxItem(**item) for item in raw_data] if raw_data else []
data = (
[ComboBoxItem(**item) for item in raw_data if isinstance(item, dict)]
if raw_data
else []
)
except Exception as e:
return ComboBoxOut(
code=500, status="error", message=f"{type(e).__name__}: {str(e)}", data=[]