From 2ef65927939ad7df711ca8a1c05378b9d0bafff3 Mon Sep 17 00:00:00 2001 From: wtp <1813748440@qq.com> Date: Tue, 24 Oct 2023 20:31:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B1=95=E7=A4=BA=E8=A1=A8?= =?UTF-8?q?=E6=83=85=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GDZZ.Application/Mapper/Mapper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GDZZ.Application/Mapper/Mapper.cs b/GDZZ.Application/Mapper/Mapper.cs index 4fd6dce..f235cc0 100644 --- a/GDZZ.Application/Mapper/Mapper.cs +++ b/GDZZ.Application/Mapper/Mapper.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; +using System.Text.RegularExpressions; using System.Threading.Tasks; namespace GDZZ.Application.Mapper @@ -13,6 +14,7 @@ namespace GDZZ.Application.Mapper public void Register(TypeAdapterConfig config) { config.ForType() + .Map(d => d.Content, s => s.Type != "text" ?s.Content: Regex.Unescape(s.Content)) .Map(d => d.ToContactId, s => s.CreatedUserId); config.ForType()