feat: 完成 DOCX 通用结构映射与严格收口
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user