From a47f2fd4966b8a1d0113b323e802b7a9755ca74f Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Mon, 4 Sep 2023 17:25:42 +0800 Subject: [PATCH] x --- IRaCIS.Core.Application/Service/Document/EmailSendService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Document/EmailSendService.cs b/IRaCIS.Core.Application/Service/Document/EmailSendService.cs index 58d05834f..f79613546 100644 --- a/IRaCIS.Core.Application/Service/Document/EmailSendService.cs +++ b/IRaCIS.Core.Application/Service/Document/EmailSendService.cs @@ -316,13 +316,13 @@ namespace IRaCIS.Core.Application.Service { if (isNeedTranslate && translateDataList.ContainsKey(dicCode)) { - var result = translateDataList[dicCode].Where(t => t.Code.ToLower() == answer.ToLower()).Select(t => isEn_us ? t.Value : t.ValueCN).FirstOrDefault() ?? string.Empty; + var result = translateDataList[dicCode].Where(t => t.Code.ToLower() == answer.ToLower()).Select(t => isEn_us ? t.Value : t.ValueCN).FirstOrDefault() ?? answer; return result; } else { - return string.Empty; + return answer; } };