|
@@ -170,6 +170,49 @@ class TemplateService:
|
|
|
</div>
|
|
|
</body>
|
|
|
</html>
|
|
|
+ """
|
|
|
+ }
|
|
|
+ }
|
|
|
+ elif type == 'get_backend_verification_code':
|
|
|
+ data = {
|
|
|
+ 'cn': {
|
|
|
+ 'title': '获取后台验证码',
|
|
|
+ 'body': """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en">
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <title>Title</title>
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div class="content"
|
|
|
+ style="overflow: hidden;padding:30px 10% 70px 10%;margin:0 10%;background-color: #fff;box-shadow:0 4px 20px rgba(0,0,0,0.1);word-break: break-all;">
|
|
|
+ <h2 style="margin: 30px 0;">您好,{username}</h2>
|
|
|
+ <p style="margin-bottom: 40px;">请输入验证码获取后台验证码,有效期5分钟:</p>
|
|
|
+ <span style="padding: 10px 20px; font-size: 24px;background-color: #EB6F5A;border-radius:4px;color:#fff;">{captcha}</span>
|
|
|
+ </div>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+ """,
|
|
|
+ },
|
|
|
+ 'en': {
|
|
|
+ 'title': 'Get Backend Verification Code',
|
|
|
+ 'body': """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en">
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <title>Title</title>
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div class="content"
|
|
|
+ style="overflow: hidden;padding:30px 10% 70px 10%;margin:0 10%;background-color: #fff;box-shadow:0 4px 20px rgba(0,0,0,0.1);word-break: break-all;">
|
|
|
+ <h2 style="margin: 30px 0;">Hello, {username}</h2>
|
|
|
+ <p style="margin-bottom: 40px;">Please input code to get backend verification code. only valid in 5 minutes!</p>
|
|
|
+ <span style="padding: 10px 20px; font-size: 24px;background-color: #EB6F5A;border-radius:4px;color:#fff;">{captcha}</span>
|
|
|
+ </div>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
"""
|
|
|
}
|
|
|
}
|