优化发送

This commit is contained in:
tongfei
2024-04-12 14:29:34 +08:00
parent f17286bfe5
commit 29d7d27371
3 changed files with 40 additions and 3 deletions

View File

@@ -5344,6 +5344,21 @@
明细
</summary>
</member>
<member name="T:WMS.Web.Core.Dto.MailAddress">
<summary>
邮箱
</summary>
</member>
<member name="P:WMS.Web.Core.Dto.MailAddress.Name">
<summary>
名称
</summary>
</member>
<member name="P:WMS.Web.Core.Dto.MailAddress.Email">
<summary>
地址
</summary>
</member>
<member name="T:WMS.Web.Core.Dto.SendDataDetailsDto">
<summary>
明细

View File

@@ -30,7 +30,7 @@ namespace WMS.Web.Core.Dto
/// <summary>
/// 邮箱
/// </summary>
public List<MailboxAddress> EmailList { get; set; } = new List<MailboxAddress>();
public List<MailAddress> EmailList { get; set; } = new List<MailAddress>();
/// <summary>
/// 明细
@@ -39,6 +39,28 @@ namespace WMS.Web.Core.Dto
}
/// <summary>
/// 邮箱
/// </summary>
public class MailAddress
{
public MailAddress(string name,string email)
{
this.Name = name;
this.Email = Email;
}
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 地址
/// </summary>
public string Email { get; set; }
}
/// <summary>
/// 明细
/// </summary>

View File

@@ -200,7 +200,7 @@ namespace WMS.Web.Domain.Services
data.Emails = string.Join(",", item.Emails);
foreach (var ema in item.Emails)
{
data.EmailList.Add(new MailboxAddress(item.CustomerName, ema));
data.EmailList.Add(new MailAddress(item.CustomerName, ema));
}
foreach (var current_det in current_notSendDetails)
@@ -260,7 +260,7 @@ namespace WMS.Web.Domain.Services
foreach (var email in item.EmailList)
{
//邮箱
await this.SendEmail(email.Address, content, email.Name);
await this.SendEmail(email.Email, content, email.Name);
}
//短信