From d50620c991d73cb98cf3d2bd80f5ad7b706233b4 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Mon, 1 Apr 2024 23:25:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BC=E5=8F=91=E9=80=81=E9=82=AE?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/TaskManagePlat/TaskManageBCService.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs index 4cf83932..736d9f93 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs @@ -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) {