feat: 快照API响应增加顶层version字段,与check接口保持一致

This commit is contained in:
mediabot-pt
2026-07-07 22:49:03 +08:00
parent dfbedcf09d
commit 1436f81667
3 changed files with 2693 additions and 0 deletions

View File

@@ -351,6 +351,7 @@ public class SiteSnapshotServiceImpl implements SiteSnapshotService {
try {
Map<String, Object> bundle = new LinkedHashMap<>();
bundle.put("siteId", snapshot.getSiteId());
bundle.put("version", snapshot.getVersion());
bundle.put("checksum", snapshot.getChecksum());
bundle.put("generatedAt", snapshot.getPublishedAt() != null
? snapshot.getPublishedAt().toString() : LocalDateTime.now().toString());