处理字符串超长限制

This commit is contained in:
2023-06-14 09:33:30 +08:00
parent 4d23680e5b
commit ed8791c9d7
7 changed files with 86 additions and 17 deletions
@@ -25,7 +25,7 @@ namespace IRaCIS.Core.Application.Filter
context.Result = new JsonResult(ResponseOutput.NotOk("并发更新,当前不允许该操作" + context.Exception.Message));
}
if (context.Exception.GetType() == typeof(BusinessValidationFailedException))
if (context.Exception.GetType() == typeof(BusinessValidationFailedException) || context.Exception.GetType() == typeof(DBSaveFailedException))
{
context.Result = new JsonResult(ResponseOutput.NotOk(context.Exception.Message,ApiResponseCodeEnum.BusinessValidationFailed));
}