feat: 完成 DOCX 通用结构映射与严格收口

This commit is contained in:
SkyJourney
2026-07-31 15:19:34 +08:00
parent 6e40374200
commit f3847f3e4b
31 changed files with 3175 additions and 64 deletions
+6
View File
@@ -516,6 +516,12 @@ export function buildApp(options: BuildAppOptions = {}) {
});
}
if (error instanceof DocxExportServiceError) {
if (error.statusCode >= 500) {
request.log.error(
{ error, cause: error.cause },
"DOCX generation service failed"
);
}
if (error.retryable) {
reply.header("retry-after", "5");
}