按后台配置顺序展示凭证图片
This commit is contained in:
@@ -192,12 +192,6 @@ def list_evidences(params: dict[str, Any]) -> dict[str, Any]:
|
||||
}
|
||||
items.sort(key=lambda item: (
|
||||
evidence_type_order.get(str(item.get("evidence_type") or ""), 99),
|
||||
1 if (
|
||||
item.get("image_id") is not None
|
||||
or "/manual-evidences/" in str(item.get("cos_object_key") or "")
|
||||
or item.get("upload_source") == "holy-backend"
|
||||
) else 0,
|
||||
str(item.get("created_at") or ""),
|
||||
int(item.get("sort_order") or 0),
|
||||
int(item.get("image_id") or item.get("evidence_id") or item.get("id") or 0),
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user