Explorar el Código

feature: 邮件附加TanCloud官网外链 #I4U9BT

chenghua hace 4 años
padre
commit
a7c7bc6bf9

+ 2 - 1
manager/src/main/java/com/usthe/manager/component/alerter/DispatchAlarm.java

@@ -154,7 +154,8 @@ public class DispatchAlarm {
             messageHelper.setSentDate(new Date());
             //构建邮件模版
             String process = mailService.buildHTMLTemplate(alert);
-            messageHelper.setText(process,true);   //设置邮件内容模版
+            //设置邮件内容模版
+            messageHelper.setText(process,true);
             javaMailSender.send(mimeMessage);
         }catch (Exception e){
             log.error("[邮箱告警] error,Exception information={}",e.getMessage());

+ 4 - 1
manager/src/main/resources/templates/mailAlarm.html

@@ -178,6 +178,7 @@
                         style="display: flex;justify-content: flex-start;align-items: center;flex-direction: column;width: 100%;">
                     <section
                             style="height: 0px;width: 52px;align-self: flex-start;z-index: 1;transform: translate(17px, -9px);">
+                        <!--//todo  图片代办更换-->
                         <img th:src="@{https://pic.imgdb.cn/item/61657b052ab3f51d912bcf60.png}"
                              style="display: block;">
                     </section>
@@ -198,6 +199,7 @@
                             </section>
                             <section
                                     style="display: flex;justify-content: center;align-items: center;width: 100%;">
+                                <!--//todo  图片代办更换-->
                                 <section style="width: 66px;margin: 0px 13px 0px 16px;"><img
                                         th:src="@{https://pic.imgdb.cn/item/61656ad22ab3f51d9114d897.jpg}"
                                         style="display: block; width: 110px; height: 110px;">
@@ -248,6 +250,7 @@
                     </section>
                     <section
                             style="width: 52px;height: 0px;z-index: 1;align-self: flex-end;transform: translate(-10px, -3px);">
+                        <!--//todo  图片代办更换-->
                         <img th:src="@{https://pic.imgdb.cn/item/61657b052ab3f51d912bcf60.png}"
                              style="display: block;">
                     </section>
@@ -309,7 +312,7 @@
                 </section>
             </section>
         </section>
-        <p><br></p>
+        <p style="text-align: center"  ><a href="https://hertzbeat.com/">TanCloud探云&nbsp; </a><br></p>
         <p><br></p>
 
     </section>