Browse Source

🎈 perf: 优化邮件提醒内容

Pchen. 8 months ago
parent
commit
7e66093427
1 changed files with 56 additions and 46 deletions
  1. 56 46
      plugin/Email/emailTemplate.js

+ 56 - 46
plugin/Email/emailTemplate.js

@@ -242,25 +242,31 @@ class emailTemplate {
             </head>
 
             <body>
-                <div class="container">
-                    <div class="head">
-                        <h2>RunForge - 乐跑账号更新成功提醒</h2>
-                    </div>
+            <div class="container">
+                <div class="head">
+                <h2>RunForge - 乐跑账号更新好啦,宝宝快看看~ 🎉💖✨</h2>
+                </div>
 
-                    <p>尊敬的 ${data.name}:</p>
-                    <p>您已成功更新乐跑账号登录信息:</p>
-                    <div class="info">
-                        <p><strong>学号:</strong> ${data.account}</p>
-                        <p><strong>年级:</strong> ${data.grade_id}</p>
-                        <p><strong>学院:</strong> ${data.academy_name}</p>
-                        <p><strong>更新时间:</strong> ${this.stramptoTime(new Date().getTime())}</p>
+                <p>亲爱的 ${data.name} 宝宝 🌸:</p>
+                <p>嘻嘻~ 你已经成功更新了乐跑账号的登录信息啦 🥰💌:</p>
 
-                    </div>
-                    <p class="important">${data.auto_run === 0 ? '当前未开启自动乐跑,登录成功后如需进行乐跑,请前往 RunForge 手动执行乐跑操作。' : '当前已开启自动乐跑,登录成功后系统将自动进行乐跑,请留意邮箱提醒。'}</p>
-                    <p class="important">请避免在其他设备上登录“智慧体育”小程序,否则将导致登录失效,届时需要重新进行登录操作。</p>
-                    <p class="important">如有疑问请联系RunForge客服。</p>
-                    <p class="footer">Copyright © 2025 RunForge</p>
+                <div class="info">
+                <p><strong>学号:</strong> ${data.account} 🎓</p>
+                <p><strong>年级:</strong> ${data.grade_id} 📚</p>
+                <p><strong>学院:</strong> ${data.academy_name} 🏫</p>
+                <p><strong>更新时间:</strong> ${this.stramptoTime(new Date().getTime())} ⏰</p>
                 </div>
+
+                <p class="important">
+                ${data.auto_run === 0
+                    ? '现在还没有帮宝宝开启自动乐跑呢 🐾💦 如果想要开始跑跑的话,记得登录后去RunForge手动点一下哦~ 🌈💕'
+                    : '已经为宝宝开启了自动乐跑啦 🏃‍♀️✨ 登录后系统会乖乖替你完成乐跑 💖 记得留意邮箱提醒哟~ 📬'}
+                </p>
+                <p class="important">宝宝要记得不要在其他设备上登录“智慧体育”小程序哦 🚫📱,不然会失效,到时候又要重新登录啦 😢💦~</p>
+                <p class="important">有问题随时喊RunForge客服小可爱呀 💕💌 我们都会耐心陪宝宝解决的哟 ✨🥰</p>
+
+                <p class="footer">Copyright © 2025 RunForge 🌟</p>
+            </div>
             </body>
 
             </html>`
@@ -435,27 +441,28 @@ class emailTemplate {
             </head>
 
             <body>
-                <div class="container">
-                    <div class="head">
-                        <h2>RunForge - 乐跑成功提醒</h2>
-                    </div>
-
-                    <p>尊敬的 ${data.name}:</p>
-                    <p>RunForge已成功为您进行乐跑:</p>
-                    <div class="info">
-                        <p><strong>学号:</strong> ${data.account}</p>
-                        <p><strong>跑区:</strong> ${data.pass_tit}</p>
-                        <p><strong>跑步时间:</strong> ${this.formatSecondsToMinSec(data.time)}</p>
-                        <p><strong>平均配速:</strong> ${this.calculatePace(data.time, data.distance)}</p>
-                        <p><strong>跑步距离:</strong> ${data.distance} Km</p>
-                        <p><strong>累计次数:</strong> ${data.total_num} 次</p>
-                        <p><strong>剩余次数:</strong> ${data.term_num - data.total_num >= 0 ? (data.term_num - data.total_num) : '已完成'} 次</p>
-                    </div>
+            <div class="container">
+                <div class="head">
+                <h2>RunForge - 乐跑成功啦 🎉💖</h2>
+                </div>
 
-                    <p class="important">如您开启了自动乐跑,请避免在其他设备上登录“智慧体育”小程序,否则将导致登录失效。</p>
-                    <p class="important">如有疑问请联系RunForge客服。</p>
-                    <p class="footer">Copyright © 2025 RunForge</p>
+                <p>亲爱的 ${data.name } 宝宝:</p>
+                <p>耶耶耶~ RunForge已经乖乖帮你完成了一次乐跑啦 ✨🏃‍♀️💨</p>
+
+                <div class="info">
+                <p><strong>学号:</strong> ${data.account}</p>
+                <p><strong>跑区:</strong> ${data.pass_tit} 🌈</p>
+                <p><strong>跑步时间:</strong> ${this.formatSecondsToMinSec(data.time)} ⏱️</p>
+                <p><strong>平均配速:</strong> ${this.calculatePace(data.time, data.distance)} 🐇</p>
+                <p><strong>跑步距离:</strong> ${data.distance} Km 💕</p>
+                <p><strong>累计次数:</strong> ${data.total_num} 次 ✨</p>
+                <p><strong>剩余次数:</strong> ${data.term_num - data.total_num >= 0 ? (data.term_num - data.total_num) : '已完成'} 次 🎯</p>
                 </div>
+
+                <p class="important">如果宝宝开启了自动乐跑,要记得不要在其他设备上登录“智慧体育”小程序哦 🚫📱,不然登录就会失效,要重新来一次啦~</p>
+                <p class="important">有问题随时找RunForge客服小可爱呀 💌 我们会陪你耐心解决的~</p>
+                <p class="footer">Copyright © 2025 RunForge ✨</p>
+            </div>
             </body>
 
             </html>`
@@ -528,24 +535,27 @@ class emailTemplate {
                 </style>
             </head>
 
-            <body>
+           <body>
                 <div class="container">
                     <div class="head">
-                        <h2>RunForge - 乐跑失败提醒</h2>
+                    <h2>RunForge - 乐跑没有成功呢 😢💦</h2>
                     </div>
 
-                    <p>尊敬的 ${data.name}:</p>
-                    <p>RunForge在尝试为您乐跑时遇到错误:</p>
+                    <p>亲爱的 ${data.name ?? data.account } 宝宝 🌸:</p>
+                    <p>RunForge刚刚尝试帮你完成乐跑的时候,遇到了一点小意外呢 💔💦:</p>
+
                     <div class="info">
-                        <p><strong>学号:</strong> ${data.account}</p>
-                        <p><strong>时间:</strong> ${this.stramptoTime(time)}</p>
-                        <p><strong>失败原因:</strong> ${data.reason}</p>
+                    <p><strong>学号:</strong> ${data.account} 🎓</p>
+                    <p><strong>时间:</strong> ${this.stramptoTime(time)}</p>
+                    <p><strong>失败原因:</strong> ${data.reason} 😭</p>
                     </div>
-                    <p class="important">若登录失效请启动RunForge乐跑登录器重新登录“智慧体育”小程序。</p>
-                    <p class="important">如有疑问请联系RunForge客服。</p>
-                    <p class="footer">Copyright © 2025 RunForge</p>
+
+                    <p class="important">宝宝如果是登录失效的话 🥺✨,要记得重新启动RunForge乐跑登录器,再登录“智慧体育”小程序就可以啦 💕</p>
+                    <p class="important">如果还是不懂,随时可以来找RunForge客服小可爱哟 💌 我们会耐心陪宝宝解决问题的 🌈🥰</p>
+
+                    <p class="footer">Copyright © 2025 RunForge 💖</p>
                 </div>
-            </body>
+                </body>
 
             </html>`
         )