修改邮件发送
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2025-12-10 15:24:57 +08:00
parent 55a2301bb5
commit 7f4f5e9d08
4 changed files with 11 additions and 9 deletions
@@ -110,8 +110,8 @@ namespace IRaCIS.Core.Application.Service
if (sendEmailConfig != null)
{
await SendEmailHelper.SendEmailAsync(sendEmailConfig);
var trialInfo = await _trialRepository.Where(t => t.Id == trialId).FirstOrDefaultAsync();
await SendEmailHelper.SendEmailAsync(sendEmailConfig, trialInfo);
}
}
@@ -13,6 +13,7 @@ using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.MassTransit.Consumer;
using IRaCIS.Core.Application.Service.Reading.Dto;
using IRaCIS.Core.Application.ViewModel;
using IRaCIS.Core.Domain.Models;
using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Domain.Share.Common;
using IRaCIS.Core.Infra.EFCore.Common;
@@ -617,8 +618,8 @@ namespace IRaCIS.Core.Application.Service
FileStream = File.OpenRead(phyPath),
});
await SendEmailHelper.SendEmailAsync(sendEmailConfig);
var trialInfo = await _trialRepository.Where(t => t.Id == taskInfo.TrialId).FirstOrDefaultAsync();
await SendEmailHelper.SendEmailAsync(sendEmailConfig, trialInfo);
return string.Empty;
}
@@ -733,8 +734,8 @@ namespace IRaCIS.Core.Application.Service
FileStream = pdfMemoryStream
});
await SendEmailHelper.SendEmailAsync(sendEmailConfig);
var trialInfo = await _trialRepository.Where(t => t.Id == taskInfo.TrialId).FirstOrDefaultAsync();
await SendEmailHelper.SendEmailAsync(sendEmailConfig, trialInfo);
}