From 8fe5f81f1c310f4f1e885233adb565a9eb784a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A3=B4=E6=B5=A9=E5=AE=87?= <617594538@qq.com> Date: Tue, 9 Apr 2024 09:15:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=8B=E9=93=BE=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E7=A9=BA=E6=8C=87=E9=92=88=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/pnkx/service/impl/PxFriendLinkServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pnkx-blog/src/main/java/com/pnkx/service/impl/PxFriendLinkServiceImpl.java b/pnkx-blog/src/main/java/com/pnkx/service/impl/PxFriendLinkServiceImpl.java index 2d0c0a8..b5365e6 100644 --- a/pnkx-blog/src/main/java/com/pnkx/service/impl/PxFriendLinkServiceImpl.java +++ b/pnkx-blog/src/main/java/com/pnkx/service/impl/PxFriendLinkServiceImpl.java @@ -93,7 +93,7 @@ public class PxFriendLinkServiceImpl implements IPxFriendLinkService { throw new ServiceException("发送邮件异常"); } } - if ("2".equals(pxFriendLink.getStatus())) { + if ("2".equals(pxFriendLink.getStatus()) && StringUtils.isNotNull(pxFriendLink.getEmail())) { // 改为失效的友链 SysEmail sysEmail = new SysEmail(); String activationTemplate = TemplateUtils.getTemplate("link"); @@ -104,7 +104,7 @@ public class PxFriendLinkServiceImpl implements IPxFriendLinkService { activationTemplate = activationTemplate.replace("template-lineImg", pxFriendLink.getImg()); activationTemplate = activationTemplate.replace("template-lineEmail", pxFriendLink.getEmail()); sysEmail.setReceiverEmail(pxFriendLink.getEmail()); - sysEmail.setSubject("\uD83D\uDC49 叮咚!「Pei你看雪博客」上有人申请友链"); + sysEmail.setSubject("\uD83D\uDC49 叮咚!「Pei你看雪博客」上您的友链已失效"); sysEmail.setContent(activationTemplate); try { sysEmailService.sendMail(sysEmail);