国际化修改

This commit is contained in:
he
2023-03-29 11:43:48 +08:00
parent e7f17f97d6
commit cb2aa0cfa4
16 changed files with 74 additions and 42 deletions
@@ -55,7 +55,8 @@ namespace IRaCIS.Core.Application.Services
if (!studyIds.Any())
{
return ResponseOutput.NotOk("当前检查没有影像可以分享。 ");
//---当前检查没有影像可以分享。
return ResponseOutput.NotOk(_localizer["ISS_NoImgToShare"]);
}
imageShareCommand.StudyId = studyIds.First();
@@ -93,17 +94,20 @@ namespace IRaCIS.Core.Application.Services
if (imageShare == null)
{
return ResponseOutput.NotOk("资源不存在。");
//---资源不存在。
return ResponseOutput.NotOk(_localizer["ISS_ResNotExists"]);
}
if (pWord != imageShare.Password.Trim())
{
return ResponseOutput.NotOk("分享密码错误。");
//---分享密码错误。
return ResponseOutput.NotOk(_localizer["ISS_SharePwdError"]);
}
if (DateTime.Now > imageShare.ExpireTime)
{
return ResponseOutput.NotOk("资源分享过期。");
//---资源分享过期。
return ResponseOutput.NotOk(_localizer["ISS_ShareExpiration"]);
}
var resource = new ResourceInfo()
@@ -128,4 +132,4 @@ namespace IRaCIS.Core.Application.Services
}
}
}
}