feat: package Beijing test deployment with HTTPS and preflight checks

This commit is contained in:
wlx committed 2026-09-10 18:10:31 +08:00
1 parent ae749a1fe9
commit c7278c00a6
33 files changed
+1153 -54

No files matched your search

@@ -223,7 +223,13 @@ public class UsageAuditService {
try {
JsonNode sanitized = sanitize(objectMapper.valueToTree(value));
String text = objectMapper.writeValueAsString(sanitized);
return text.length() > MAX_PAYLOAD_CHARS ? text.substring(0, MAX_PAYLOAD_CHARS) + "…" : text;
if (text.length() <= MAX_PAYLOAD_CHARS) return text;
// Preserve valid JSON for PostgreSQL jsonb even when payloads are large.
ObjectNode summary = objectMapper.createObjectNode();
summary.put("_truncated", true);
summary.put("_originalChars", text.length());
summary.put("preview", text.substring(0, 8000));
return objectMapper.writeValueAsString(summary);
} catch (JsonProcessingException exception) { return "{\"_unserializable\":true}"; }
}