修改警告
continuous-integration/drone/push Build is passing Details

IRC_NewDev
hang 2023-12-06 10:33:11 +08:00
parent f469ce0227
commit fc8aaea395
8 changed files with 4 additions and 44 deletions

View File

@ -402,7 +402,7 @@ namespace IRaCIS.Core.API.Controllers
}
catch (Exception ex)
catch (Exception )
{
_provider.Remove($"StudyUid_{trialId}_{archiveStudyCommand.StudyInstanceUid}");

View File

@ -14,40 +14,6 @@ namespace IRaCIS.Core.Application.Helper;
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)
{

View File

@ -357,7 +357,6 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
public class GetDataInspectionOutDto : DataInspection
{
public Guid? TrialReadingCriterionId { get; set; }
public string TrialReadingCriterionName { 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 CreateUserRealName { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string DescriptionCN { get; set; } = string.Empty;

View File

@ -9,7 +9,6 @@ namespace IRaCIS.Core.Application.Contracts
/// <summary> UserTypeRoleView 列表视图模型 </summary>
public class UserTypeRoleView : UserTypeMenuAddOrEdit
{
public UserTypeEnum UserTypeEnum { get; set; }
public List<UserTypeGroupInfo> UserTypeGroupList { get; set; } = new List<UserTypeGroupInfo>();
public new List<Guid> UserTypeGroupIdList => UserTypeGroupList.Select(t => t.DictionaryId).ToList();

View File

@ -282,7 +282,7 @@ namespace IRaCIS.Application.Services
{
await _mailVerificationService.AdminResetPwdSendEmailAsync(userId, pwd);
}
catch (Exception ex)
catch (Exception )
{
//---请检查邮箱地址或者联系维护人员, 邮件发送失败, 未能创建账户成功
throw new BusinessValidationFailedException(_localizer["User_CreateFailed"]);

View File

@ -476,7 +476,7 @@ namespace IRaCIS.Core.Application.Contracts.DTO
{
return JsonConvert.DeserializeObject<List<ParamInfoDto>>(ParamInfo);
}
catch (Exception e)
catch (Exception )
{
return new List<ParamInfoDto>();

View File

@ -711,7 +711,6 @@ namespace IRaCIS.Core.Application.Contracts
public string RequestReReadingReason { get; set; } = string.Empty;
public DateTime? SuggesteFinishedTime { get; set; }
[DictionaryTranslateAttribute("RequestReReadingResult")]
public RequestReReadingResult RequestReReadingResultEnum { get; set; }

View File

@ -10,7 +10,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
{
public class ReadingPeriodSetAddOrEdit
{
public new Guid? Id { get; set; }
public Guid? Id { get; set; }
/// <summary>
/// 项目ID