|
|
|
@ -225,22 +225,32 @@ namespace Myshipping.Application.EDI
|
|
|
|
|
};
|
|
|
|
|
postModel.copyNum = custOrder.CopyNum;
|
|
|
|
|
|
|
|
|
|
// 邮箱
|
|
|
|
|
postModel.emailList = new List<string>();
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(custOrder.OpMail))
|
|
|
|
|
{
|
|
|
|
|
var mailStr = custOrder.OpMail.Replace(",", ",");
|
|
|
|
|
var mailStr = custOrder.OpMail.Replace(",", ",").Replace(";", ",").Replace(";", ",");
|
|
|
|
|
var mailList = mailStr.Split(',').Where(x => !string.IsNullOrWhiteSpace(x)).Select(x => x.Trim()).ToList();
|
|
|
|
|
postModel.emailList = mailList;
|
|
|
|
|
postModel.emailList.AddRange(mailList);
|
|
|
|
|
}
|
|
|
|
|
//else if (!string.IsNullOrEmpty(custContact.Email))
|
|
|
|
|
//{
|
|
|
|
|
// postModel.emailList = new List<string>() { custContact.Email };
|
|
|
|
|
//}
|
|
|
|
|
//else if (!string.IsNullOrEmpty(template.BcReceiveEmail))
|
|
|
|
|
//{
|
|
|
|
|
// postModel.emailList = new List<string>() { template.BcReceiveEmail };
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
var apiUrl = sCfgSpiderUrl.Value;
|
|
|
|
|
if (!string.IsNullOrEmpty(template.BcReceiveEmail))
|
|
|
|
|
{
|
|
|
|
|
var mailStr = template.BcReceiveEmail.Replace(",", ",").Replace(";", ",").Replace(";", ",");
|
|
|
|
|
var mailList = template.BcReceiveEmail.Split(',').Where(x => !string.IsNullOrWhiteSpace(x)).Select(x => x.Trim()).ToList();
|
|
|
|
|
postModel.emailList.AddRange(mailList);
|
|
|
|
|
}
|
|
|
|
|
postModel.emailList = postModel.emailList.Distinct().ToList();
|
|
|
|
|
|
|
|
|
|
//else if (!string.IsNullOrEmpty(custContact.Email))
|
|
|
|
|
//{
|
|
|
|
|
// postModel.emailList = new List<string>() { custContact.Email };
|
|
|
|
|
//}
|
|
|
|
|
//else if (!string.IsNullOrEmpty(template.BcReceiveEmail))
|
|
|
|
|
//{
|
|
|
|
|
// postModel.emailList = new List<string>() { template.BcReceiveEmail };
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
var apiUrl = sCfgSpiderUrl.Value;
|
|
|
|
|
if (!apiUrl.EndsWith("/"))
|
|
|
|
|
{
|
|
|
|
|
apiUrl += "/";
|
|
|
|
|