From 00ae047e01469bc7b1b023701b49f0e64aad5781 Mon Sep 17 00:00:00 2001 From: hjhan Date: Fri, 21 Aug 2026 09:24:23 +0800 Subject: [PATCH] =?UTF-8?q?docs(swap):=20EQD-5320=20EmailTemplateService?= =?UTF-8?q?=E8=A1=A5=E8=AE=BE=E8=AE=A1=E5=AE=88=E5=8D=AB=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E2=80=94=E2=80=94=E5=8D=A0=E4=BD=8D=E7=AC=A6=E6=9C=B4=E7=B4=A0?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2/=E4=B8=8D=E5=81=9AHTML=E8=BD=AC=E4=B9=89?= =?UTF-8?q?=E5=9D=87=E4=B8=BA=E6=9C=89=E6=84=8F=E5=86=B3=E7=AD=96=EF=BC=8C?= =?UTF-8?q?=E4=B8=8Ebond-oms=20Java=20SwapEmailHandler=E5=90=8C=E6=9E=84?= =?UTF-8?q?=EF=BC=8C=E5=8B=BF=E5=8D=95=E8=BE=B9=E5=8D=87=E7=BA=A7=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=BC=95=E6=93=8E=E6=88=96=E5=8A=A0=E8=BD=AC=E4=B9=89?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=8D=A0=E4=BD=8D=E7=AC=A6=E4=B8=A4=E4=BE=A7?= =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpDAL/Modules/AppModule/EmailTemplateService.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/YLErpDAL/Modules/AppModule/EmailTemplateService.cs b/YLErpDAL/Modules/AppModule/EmailTemplateService.cs index c98fb9d8..aeca2cbc 100644 --- a/YLErpDAL/Modules/AppModule/EmailTemplateService.cs +++ b/YLErpDAL/Modules/AppModule/EmailTemplateService.cs @@ -74,7 +74,12 @@ namespace YLErp.Modules.AppModule } /// - /// 生成邮件信息,如果template为null,返回null + /// 生成邮件信息,如果template为null,返回null。 + /// 【设计决策·勿单边"升级"】占位符为朴素文本替换(非模板引擎),与本表另一消费者 + /// bond-oms Java SwapEmailHandler.replaceMailPlaceholders 保持同构渲染语义—— + /// 单边引入 FreeMarker/Thymeleaf 等更强语法或 HTML 转义,会造成两侧发出内容不一致。 + /// 替换值(客户名称/文档编号等)不做 HTML 转义是有意为之:均为内部维护的可信数据; + /// 若未来要拼接用户自由输入的内容,必须两侧同步加转义。新占位符同样两侧同步加白名单。 /// public static MailInfoResultModel GenerateMailInfo(EmailTemplate template, MailInfoRequestModel reqModel) {