From 03cdefca3496a020120c95f9b3bf91a760605966 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 18 May 2026 13:38:45 +0800 Subject: [PATCH] fix: hide internal model names in account center --- app/api/user/account-center/route.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/api/user/account-center/route.ts b/app/api/user/account-center/route.ts index 619d467c1..9b063fe21 100644 --- a/app/api/user/account-center/route.ts +++ b/app/api/user/account-center/route.ts @@ -29,6 +29,7 @@ function mapLedgerReasonLabel(reason: string) { if (reason === "image_generation") return "图片生成"; if (reason === "style_pro_generation") return "风格化 PRO"; if (reason === "style_pro_realistic_generation") return "风格化 PRO 实景化"; + if (reason === "realtime_canvas_generation") return "实时绘画生成"; if (reason === "model3d_generation") return "3D模型生成"; if (reason === "model3d_task") return "3D模型任务"; if (reason === "model3d_task_refund") return "3D模型任务失败退回"; @@ -71,6 +72,14 @@ function formatLedgerDetail(params: { } const trimmedNote = typeof note === "string" ? note.trim() : ""; + if (reason === "style_pro_realistic_generation") { + return "风格化 PRO 实景化生图消耗积分"; + } + if (reason === "realtime_canvas_generation") { + const sanitizedRealtimeNote = trimmedNote.replace(/(.*$/, "").trim(); + return sanitizedRealtimeNote || "实时绘画生成消耗积分"; + } + if (reason === "model3d_task") { const taskMatch = trimmedNote.match(MODEL3D_LEDGER_NOTE_WITH_TASK_PATTERN); if (taskMatch) {