修正附件为null时报错的问题

master
wanghaomei 3 years ago
parent 20bc928d22
commit 32174a90b3

@ -102,7 +102,7 @@ namespace MailSend.Web.Controllers
mailSend.ShowName = item.ShowName; mailSend.ShowName = item.ShowName;
//附件处理 //附件处理
if (item.Attaches.Count > 0) if (item.Attaches != null && item.Attaches.Count > 0)
{ {
var list = new List<AttachFileModel>(); var list = new List<AttachFileModel>();
foreach (var att in item.Attaches) foreach (var att in item.Attaches)

Loading…
Cancel
Save