修改签名国际化
parent
3eaa8a1078
commit
31ee156d86
|
@ -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)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue