fix: 加固日历日期与动态错误合同(09-05-error-explainability-payment-readiness,09-08-reimbursement-payment-closeout)
ci-e2e / e2e (push) Canceled after 0s
ci-minimal / check-minimal (push) Canceled after 0s

这个提交包含在:
2026-09-16 20:20:11 +08:00
父节点 842c61e696
当前提交 b1d25d3c99
共修改 20 个文件,包含 253 行新增和 21 行删除
+4 -2
查看文件
@@ -1,4 +1,5 @@
import { formatInvoiceOcrFieldLabels } from "../lib/invoiceOcr";
import { formatDisplayDateTime } from "../lib/displayFormat";
import { resolveErrorReasonMessage, UNKNOWN_VALIDATION_MESSAGE } from "./errorReasons";
function readStringList(value: unknown): string[] {
@@ -307,8 +308,9 @@ export function mapApiErrorMessage(
if (details?.workflow === "remind_too_frequent") {
const nextAllowedAt = typeof details?.nextAllowedAt === "string" ? details.nextAllowedAt : null;
return nextAllowedAt
? `24 小时内已催办过,请在 ${nextAllowedAt.slice(0, 19).replace("T", " ")} 后再试。`
return nextAllowedAt && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z$/.test(nextAllowedAt)
&& Number.isFinite(new Date(nextAllowedAt).getTime())
? `24 小时内已催办过,请在北京时间 ${formatDisplayDateTime(nextAllowedAt, { includeSeconds: true })} 后再试。`
: "24 小时内已催办过。";
}