From 2de4baf0af4cd2d90148af7d43be352dbf6f3cb0 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 2 Feb 2026 18:56:55 -0800 Subject: [PATCH] =?UTF-8?q?fix(c2c-bot):=20=E5=AE=89=E8=A3=85=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E5=AD=97=E4=BD=93=E8=A7=A3=E5=86=B3=E6=B0=B4=E5=8D=95?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B9=B1=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alpine Linux 容器没有中文字体,sharp 渲染 SVG 时中文显示为方块。 - Dockerfile: 安装 fontconfig + font-noto-cjk 并刷新字体缓存 - SVG 模板: font-family 改为 Noto Sans CJK SC Co-Authored-By: Claude Opus 4.5 --- backend/services/trading-service/Dockerfile | 2 +- .../services/payment-proof.service.ts | 28 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/backend/services/trading-service/Dockerfile b/backend/services/trading-service/Dockerfile index d3a0a3f2..5e6c70a4 100644 --- a/backend/services/trading-service/Dockerfile +++ b/backend/services/trading-service/Dockerfile @@ -22,7 +22,7 @@ FROM node:20-alpine AS runner RUN addgroup --system --gid 1001 nodejs && \ adduser --system --uid 1001 -G nodejs nestjs -RUN apk add --no-cache curl tzdata openssl su-exec +RUN apk add --no-cache curl tzdata openssl su-exec fontconfig font-noto-cjk && fc-cache -f RUN mkdir -p /app && chown nestjs:nodejs /app WORKDIR /app diff --git a/backend/services/trading-service/src/application/services/payment-proof.service.ts b/backend/services/trading-service/src/application/services/payment-proof.service.ts index 2be0be87..9178ce15 100644 --- a/backend/services/trading-service/src/application/services/payment-proof.service.ts +++ b/backend/services/trading-service/src/application/services/payment-proof.service.ts @@ -60,39 +60,39 @@ export class PaymentProofService { - C2C Bot 付款凭证 + C2C Bot 付款凭证 - 已完成 - COMPLETED + 已完成 + COMPLETED - 订单编号 - ${this.esc(data.orderNo)} + 订单编号 + ${this.esc(data.orderNo)} - 支付金额 (dUSDT) - ${this.esc(data.amount)} + 支付金额 (dUSDT) + ${this.esc(data.amount)} - 交易哈希 - ${this.esc(shortTx)} + 交易哈希 + ${this.esc(shortTx)} - 收款地址 - ${this.esc(shortAddr)} + 收款地址 + ${this.esc(shortAddr)} - 完成时间 - ${this.esc(time)} + 完成时间 + ${this.esc(time)} - 由系统自动生成 · RWAdurian C2C Bot + 由系统自动生成 · RWAdurian C2C Bot `; }