修改签名国际化

Uat_Study
{872297557@qq.com} 2023-01-10 15:26:53 +08:00
parent 3eaa8a1078
commit 31ee156d86
1 changed files with 3 additions and 3 deletions

View File

@ -500,7 +500,7 @@ namespace IRaCIS.Core.Application
[HttpGet("{signCode}")] [HttpGet("{signCode}")]
public async Task<IResponseOutput> GetSignText(string signCode) public async Task<IResponseOutput> GetSignText(string signCode)
{ {
var signRawText = await _repository.Where<SystemBasicData>(t => t.Code == signCode).Select(t => new { t.Code, t.Value, t.Id, ParentValue = t.Parent.Value, ParentValueCN = t.Parent.ValueCN }).FirstOrDefaultAsync(); var signRawText = await _repository.Where<SystemBasicData>(t => t.Code == signCode).Select(t => new { t.Code, t.Value, t.ValueCN, t.Id, ParentValue = t.Parent.Value, ParentValueCN = t.Parent.ValueCN }).FirstOrDefaultAsync();
if (signRawText == null) if (signRawText == null)
{ {
@ -511,8 +511,8 @@ namespace IRaCIS.Core.Application
{ {
SignCodeId = signRawText.Id, SignCodeId = signRawText.Id,
SignCode = signRawText.Code, SignCode = signRawText.Code,
SignText = signRawText.ParentValue.Replace("xxx", signRawText.Value), SignText = _userInfo.IsEn_Us? signRawText.ParentValue.Replace("xxx", signRawText.Value) : signRawText.ParentValueCN.Replace("xxx", signRawText.ValueCN),
SignTextCN = signRawText.ParentValueCN.Replace("xxx", signRawText.Value) //SignTextCN = signRawText.ParentValueCN.Replace("xxx", signRawText.Value)
}); });
} }