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

This commit is contained in:
he
2025-12-10 16:36:24 +08:00
parent 7f4f5e9d08
commit a2d4d100d3
3 changed files with 38 additions and 10 deletions
@@ -122,7 +122,7 @@ namespace IRaCIS.Core.Application.Services
}
/// <summary>
/// 测试定时发送
/// 测试邮件定时发送
/// </summary>
/// <returns></returns>
public async Task<IResponseOutput> TestPush()
@@ -140,6 +140,22 @@ namespace IRaCIS.Core.Application.Services
return ResponseOutput.Result(true);
}
public async Task<IResponseOutput> TestSendEmail()
{
Task.Run(async () =>
{
// 创建独立作用域
using (var scope = serviceScopeFactory.CreateScope())
{
// 从新作用域解析服务
var mediator = scope.ServiceProvider.GetRequiredService<IMediator>();
await mediator.Publish(new ImageQCRecurringEvent { TrialId= Guid.Parse("08de2254-5d7d-581a-0242-0a0001000000") });
}
});
return ResponseOutput.Result(true);
}
/// <summary>
/// Setting 界面的 项目所有文档列表
/// </summary>