去除引用common.props
This commit is contained in:
@@ -360,7 +360,7 @@ public class SendMessageService : ISendMessageService, IDynamicApiController, IT
|
||||
var paramsDic = messageSendModel.paramJson.ToDictionary(x => x.field, y => y.value);//参数
|
||||
var title = messageTemplateEntity.Title;
|
||||
var content = messageTemplateEntity.Content;
|
||||
if (messageTemplateEntity.MessageType=="6")
|
||||
if (messageTemplateEntity.MessageType == "6")
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -462,9 +462,9 @@ public class SendMessageService : ISendMessageService, IDynamicApiController, IT
|
||||
return errorList.Any() ? string.Join(",", errorList) : string.Empty;
|
||||
}
|
||||
|
||||
public async Task SendMessageDefult(string enCode, List<string> toUser,string creatorUser, string flowName, Dictionary<string, object> bodyDic)
|
||||
public async Task SendMessageDefult(string enCode, List<string> toUser, string creatorUser, string flowName, Dictionary<string, object> bodyDic)
|
||||
{
|
||||
var msgTemplateEntity= await _repository.AsSugarClient().Queryable<MessageTemplateEntity>().FirstAsync(x => x.EnCode == enCode && x.TemplateType=="1" && x.DeleteMark == null);
|
||||
var msgTemplateEntity = await _repository.AsSugarClient().Queryable<MessageTemplateEntity>().FirstAsync(x => x.EnCode == enCode && x.TemplateType == "1" && x.DeleteMark == null);
|
||||
msgTemplateEntity.Title = msgTemplateEntity.Title.Replace("@流程发起人", creatorUser).Replace("@流程名称", flowName);
|
||||
msgTemplateEntity.Content = msgTemplateEntity.Content.Replace("@流程发起人", creatorUser).Replace("@流程名称", flowName);
|
||||
await _messageService.SentMessage(toUser, msgTemplateEntity.Title, msgTemplateEntity.Content, bodyDic);
|
||||
@@ -534,7 +534,7 @@ public class SendMessageService : ISendMessageService, IDynamicApiController, IT
|
||||
Password = messageAccountEntity.SmtpPassword,
|
||||
SMTPHost = messageAccountEntity.SmtpServer,
|
||||
SMTPPort = messageAccountEntity.SmtpPort.ParseToInt(),
|
||||
Ssl=messageAccountEntity.SslLink.Equals("1")
|
||||
Ssl = messageAccountEntity.SslLink.Equals("1")
|
||||
}, mailModel);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user