修改展示表情能力

development
温天培 1 year ago
parent 6b16280d57
commit 2ef6592793

@ -4,6 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace GDZZ.Application.Mapper namespace GDZZ.Application.Mapper
@ -13,6 +14,7 @@ namespace GDZZ.Application.Mapper
public void Register(TypeAdapterConfig config) public void Register(TypeAdapterConfig config)
{ {
config.ForType<LiveMessage, LiveMessageList>() config.ForType<LiveMessage, LiveMessageList>()
.Map(d => d.Content, s => s.Type != "text" ?s.Content: Regex.Unescape(s.Content))
.Map(d => d.ToContactId, s => s.CreatedUserId); .Map(d => d.ToContactId, s => s.CreatedUserId);
config.ForType<LiveHistoryContacts, LiveHistoryLists>() config.ForType<LiveHistoryContacts, LiveHistoryLists>()

Loading…
Cancel
Save