Files
Jyotisha/frontend/src/lib/rectification-case-get-log.ts
T
jesse-ux 824ecff026 fix(web): 账户弹窗移出 inert;校正快照失败不再静默(BUG-968/969)
账户弹窗与入门付费墙 portal 到 document.body,SidebarInset 的 inert 不再罩住弹窗。
GET 校正快照每个非 200 打 JSON warn;客户端失败显示「这一问还没读到」和重新读取。
下一题是可渲染选择题时,确定性回复正文带题干,挂卡后去重。
2026-09-18 19:16:00 +08:00

20 lines
547 B
TypeScript

/**
* GET /api/rectification/cases/[caseId] used to return 4xx/5xx with no log.
* Every non-200 now emits one JSON warn so a silent client miss is still
* visible in the server log (BUG-969). Fields stay non-PII.
*/
export function warnRectificationCaseGet(input: Readonly<{
caseId: string;
status: number;
code: string;
reason: string;
}>): void {
console.warn(JSON.stringify({
event: "rectification_case_get_failed",
case_id: input.caseId,
status: input.status,
code: input.code,
reason: input.reason,
}));
}