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