fix: 修复证据上传审计并补充前端操作提示要求

This commit is contained in:
zhangshy
2026-09-11 11:42:53 +08:00
parent 47056792eb
commit 6911dd98a7
4 changed files with 79 additions and 3 deletions
@@ -9,6 +9,7 @@ from __future__ import annotations
import io
import os
import re
from datetime import UTC, datetime
from hashlib import sha256
from pathlib import Path
from uuid import uuid4
@@ -129,6 +130,7 @@ class RiskEvidenceArchiveService:
"file_size": len(content),
"sha256": sha256(content).hexdigest(),
},
created_at=datetime.now(UTC).replace(tzinfo=None),
))
await self.session.commit()
committed = True