修改警告
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f469ce0227
commit
fc8aaea395
|
@ -402,7 +402,7 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception )
|
||||||
{
|
{
|
||||||
_provider.Remove($"StudyUid_{trialId}_{archiveStudyCommand.StudyInstanceUid}");
|
_provider.Remove($"StudyUid_{trialId}_{archiveStudyCommand.StudyInstanceUid}");
|
||||||
|
|
||||||
|
|
|
@ -14,40 +14,6 @@ namespace IRaCIS.Core.Application.Helper;
|
||||||
public static class FileStoreHelper
|
public static class FileStoreHelper
|
||||||
{
|
{
|
||||||
|
|
||||||
public static string UploadOOS(string filePath,string route)
|
|
||||||
{
|
|
||||||
var endpoint = ConfigurationManager.AppSettings["AliyunOSS:endpoint"];
|
|
||||||
// yourEndpoint填写Bucket所在地域对应的Endpoint。以华东1(杭州)为例,Endpoint填写为https://oss-cn-hangzhou.aliyuncs.com。
|
|
||||||
|
|
||||||
// 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM用户进行API访问或日常运维,请登录RAM控制台创建RAM用户。
|
|
||||||
var accessKeyId = ConfigurationManager.AppSettings["AliyunOSS:accessKeyId"];
|
|
||||||
var accessKeySecret = ConfigurationManager.AppSettings["AliyunOSS:accessKeySecret"];
|
|
||||||
// 填写Bucket名称,例如examplebucket。
|
|
||||||
var bucketName = ConfigurationManager.AppSettings["AliyunOSS:bucketName"];
|
|
||||||
// 填写Object完整路径,完整路径中不能包含Bucket名称,例如exampledir/exampleobject.txt。
|
|
||||||
|
|
||||||
var fileNameList = filePath.Split(',').ToList();
|
|
||||||
var fileName = fileNameList[fileNameList.Count - 1];
|
|
||||||
|
|
||||||
var objectName = route+ fileName;
|
|
||||||
// 填写本地文件完整路径,例如D:\\localpath\\examplefile.txt。如果未指定本地路径,则默认从示例程序所属项目对应本地路径中上传文件。
|
|
||||||
var localFilename = filePath;
|
|
||||||
// 创建OSSClient实例。
|
|
||||||
var client = new OssClient(endpoint, accessKeyId, accessKeySecret);
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// 上传文件。
|
|
||||||
var result = client.PutObject(bucketName, objectName, localFilename);
|
|
||||||
|
|
||||||
return result.ETag;
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
throw new BusinessValidationFailedException("上传异常!");
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//处理文件名 压缩包,或者目录类的 会带上相对路径
|
//处理文件名 压缩包,或者目录类的 会带上相对路径
|
||||||
public static (string TrustedFileNameForFileStorage, string RealName) GetStoreFileName(string fileName,bool isChangeToPdfFormat=false)
|
public static (string TrustedFileNameForFileStorage, string RealName) GetStoreFileName(string fileName,bool isChangeToPdfFormat=false)
|
||||||
{
|
{
|
||||||
|
|
|
@ -357,7 +357,6 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
|
||||||
|
|
||||||
public class GetDataInspectionOutDto : DataInspection
|
public class GetDataInspectionOutDto : DataInspection
|
||||||
{
|
{
|
||||||
public Guid? TrialReadingCriterionId { get; set; }
|
|
||||||
public string TrialReadingCriterionName { get; set; }
|
public string TrialReadingCriterionName { get; set; }
|
||||||
public string BlindName { get; set; }
|
public string BlindName { get; set; }
|
||||||
|
|
||||||
|
@ -371,9 +370,6 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
|
||||||
|
|
||||||
//public string ParentJson { get; set; } = string.Empty;
|
//public string ParentJson { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
public string CreateUserRealName { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
public string DescriptionCN { get; set; } = string.Empty;
|
public string DescriptionCN { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
/// <summary> UserTypeRoleView 列表视图模型 </summary>
|
/// <summary> UserTypeRoleView 列表视图模型 </summary>
|
||||||
public class UserTypeRoleView : UserTypeMenuAddOrEdit
|
public class UserTypeRoleView : UserTypeMenuAddOrEdit
|
||||||
{
|
{
|
||||||
public UserTypeEnum UserTypeEnum { get; set; }
|
|
||||||
public List<UserTypeGroupInfo> UserTypeGroupList { get; set; } = new List<UserTypeGroupInfo>();
|
public List<UserTypeGroupInfo> UserTypeGroupList { get; set; } = new List<UserTypeGroupInfo>();
|
||||||
|
|
||||||
public new List<Guid> UserTypeGroupIdList => UserTypeGroupList.Select(t => t.DictionaryId).ToList();
|
public new List<Guid> UserTypeGroupIdList => UserTypeGroupList.Select(t => t.DictionaryId).ToList();
|
||||||
|
|
|
@ -282,7 +282,7 @@ namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
await _mailVerificationService.AdminResetPwdSendEmailAsync(userId, pwd);
|
await _mailVerificationService.AdminResetPwdSendEmailAsync(userId, pwd);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception )
|
||||||
{
|
{
|
||||||
//---请检查邮箱地址或者联系维护人员, 邮件发送失败, 未能创建账户成功
|
//---请检查邮箱地址或者联系维护人员, 邮件发送失败, 未能创建账户成功
|
||||||
throw new BusinessValidationFailedException(_localizer["User_CreateFailed"]);
|
throw new BusinessValidationFailedException(_localizer["User_CreateFailed"]);
|
||||||
|
|
|
@ -476,7 +476,7 @@ namespace IRaCIS.Core.Application.Contracts.DTO
|
||||||
{
|
{
|
||||||
return JsonConvert.DeserializeObject<List<ParamInfoDto>>(ParamInfo);
|
return JsonConvert.DeserializeObject<List<ParamInfoDto>>(ParamInfo);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception )
|
||||||
{
|
{
|
||||||
|
|
||||||
return new List<ParamInfoDto>();
|
return new List<ParamInfoDto>();
|
||||||
|
|
|
@ -711,7 +711,6 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
public string RequestReReadingReason { get; set; } = string.Empty;
|
public string RequestReReadingReason { get; set; } = string.Empty;
|
||||||
|
|
||||||
public DateTime? SuggesteFinishedTime { get; set; }
|
|
||||||
|
|
||||||
[DictionaryTranslateAttribute("RequestReReadingResult")]
|
[DictionaryTranslateAttribute("RequestReReadingResult")]
|
||||||
public RequestReReadingResult RequestReReadingResultEnum { get; set; }
|
public RequestReReadingResult RequestReReadingResultEnum { get; set; }
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
{
|
{
|
||||||
public class ReadingPeriodSetAddOrEdit
|
public class ReadingPeriodSetAddOrEdit
|
||||||
{
|
{
|
||||||
public new Guid? Id { get; set; }
|
public Guid? Id { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目ID
|
/// 项目ID
|
||||||
|
|
Loading…
Reference in New Issue