修改提示错误
parent
8ba22a343a
commit
568ef07438
|
@ -35,7 +35,7 @@ namespace IRaCIS.Core.Application.Filter
|
||||||
{
|
{
|
||||||
var error = context.Exception as BusinessValidationFailedException;
|
var error = context.Exception as BusinessValidationFailedException;
|
||||||
|
|
||||||
context.Result = new JsonResult(ResponseOutput.NotOk(context.Exception.Message, error!.Code,localizedInfo: $"[{error!.LocalizedKey}]:{StaticData.Log_Locoalize_Dic[error!.LocalizedKey]}"));
|
context.Result = new JsonResult(ResponseOutput.NotOk(context.Exception.Message,"", error!.Code,localizedInfo: $"[{error!.LocalizedKey}]:{StaticData.Log_Locoalize_Dic[error!.LocalizedKey]}"));
|
||||||
|
|
||||||
//warning 级别记录
|
//warning 级别记录
|
||||||
//_logger.LogWarning($"[{error!.LocalizedKey}]:{StaticData.Log_Locoalize_Dic[error!.LocalizedKey]}");
|
//_logger.LogWarning($"[{error!.LocalizedKey}]:{StaticData.Log_Locoalize_Dic[error!.LocalizedKey]}");
|
||||||
|
|
|
@ -69,6 +69,7 @@ namespace IRaCIS.Application.Services.BusinessFilter
|
||||||
{
|
{
|
||||||
var result = objectResult.Value as IResponseOutput;
|
var result = objectResult.Value as IResponseOutput;
|
||||||
|
|
||||||
|
//统一在这里记录国际化的日志信息
|
||||||
_logger.LogWarning($"{result.LocalizedInfo}");
|
_logger.LogWarning($"{result.LocalizedInfo}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,8 +76,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||||
public string ValueCN { get; set; } = string.Empty;
|
public string ValueCN { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string Module { get; set; } = string.Empty;
|
public string Module { get; set; } = string.Empty;
|
||||||
//关联版本历史记录表Id
|
|
||||||
public Guid? PublishLogId { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BatchAddInternationalizationDto : BatchInternationalizationDto
|
public class BatchAddInternationalizationDto : BatchInternationalizationDto
|
||||||
|
|
Loading…
Reference in New Issue