修改BC发送邮件

master
jianghaiqing 8 months ago
parent 5c4170b287
commit d50620c991

@ -1616,7 +1616,7 @@ namespace Myshipping.Application
if (publicMailAccount == null)
{
throw Oops.Oh($"提取公共邮箱配置失败,请在用户邮箱账号管理增加配置显示名为BCNotice");
throw Oops.Oh($"提取公共邮箱配置失败,请在用户邮箱账号管理增加配置显示名为PublicSend或者配置个人邮箱");
}
_logger.LogInformation($"提取当前公共邮箱的配置完成id={publicMailAccount.Id}");
@ -1700,8 +1700,16 @@ namespace Myshipping.Application
_logger.LogInformation($"推送邮件完成,结果:{JSON.Serialize(emailRlt)}");
result.succ = true;
result.msg = "成功";
if(emailRlt.succ)
{
result.succ = true;
result.msg = "成功";
}
else
{
result.succ = false;
result.msg = emailRlt.msg;
}
}
catch (Exception ex)
{

Loading…
Cancel
Save