aws bug
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
8dcd1f2f56
commit
f9f3a1422f
|
@ -35,7 +35,9 @@ namespace IRaCIS.Core.API
|
|||
else
|
||||
{
|
||||
// Default or English date format
|
||||
_dateFormat = "MM/dd/yyyy HH:mm:ss";
|
||||
//_dateFormat = "MM/dd/yyyy HH:mm:ss";
|
||||
|
||||
_dateFormat = "yyyy-MM-dd HH:mm:ss";
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
|
||||
"ChangePassWordDays": 90,
|
||||
|
||||
"OpenLoginMFA": true
|
||||
"OpenLoginMFA": false
|
||||
},
|
||||
|
||||
"SystemEmailSendConfig": {
|
||||
|
|
|
@ -28,6 +28,7 @@ using MassTransit;
|
|||
using AlibabaCloud.SDK.Sts20150401;
|
||||
using Amazon.SecurityToken;
|
||||
using Amazon.SecurityToken.Model;
|
||||
using Amazon;
|
||||
|
||||
namespace IRaCIS.Core.Application.Helper
|
||||
{
|
||||
|
@ -235,13 +236,15 @@ namespace IRaCIS.Core.Application.Helper
|
|||
{
|
||||
var awsConfig = ObjectStoreServiceOptions.AWS;
|
||||
|
||||
// 提供awsAccessKeyId和awsSecretAccessKey构造凭证
|
||||
var credentials = new BasicAWSCredentials(AWSTempToken.AccessKeyId, AWSTempToken.SecretAccessKey);
|
||||
var credentials = new SessionAWSCredentials( AWSTempToken.AccessKeyId, AWSTempToken.SecretAccessKey, AWSTempToken.SessionToken);
|
||||
|
||||
|
||||
|
||||
//提供awsEndPoint(域名)进行访问配置
|
||||
var clientConfig = new AmazonS3Config
|
||||
{
|
||||
ServiceURL = awsConfig.EndPoint
|
||||
RegionEndpoint = RegionEndpoint.USEast1,
|
||||
UseHttp =true,
|
||||
};
|
||||
|
||||
var amazonS3Client = new AmazonS3Client(credentials, clientConfig);
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
return await previousHistoryQueryable.ToListAsync();
|
||||
}
|
||||
|
||||
[HttpPost("{trialId:guid}")]
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput<Guid>> AddOrUpdatePreviousHistory(PreviousHistoryAddOrEdit addOrEditPreviousHistory)
|
||||
{
|
||||
await _qCCommon.VerifyIsCRCSubmmitAsync(_subjectVisitRepository, _userInfo, addOrEditPreviousHistory.SubjectVisitId);
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace IRaCIS.Core.Domain.Models
|
|||
///PreviousHistory
|
||||
///</summary>
|
||||
[Table("PreviousHistory")]
|
||||
public class PreviousHistory : BaseAddAuditEntityWithUserName
|
||||
public class PreviousHistory : BaseAddAuditEntity
|
||||
{
|
||||
#region 导航属性
|
||||
[JsonIgnore]
|
||||
|
|
Loading…
Reference in New Issue