fix: 1052009

--bug=1052009 --user=王孝刚 [国际化]修改密码的验证码通知邮件未国际化 https://www.tapd.cn/57709429/s/1651094
This commit is contained in:
wxg0103 2025-02-06 16:04:37 +08:00 committed by wxg
parent 1db5696bc1
commit 5453aa7380
2 changed files with 3 additions and 3 deletions

View File

@ -54,10 +54,10 @@
>
<div
style="
width: 230px;
width: 500px;
background: linear-gradient(180deg, #3370FF 0%, #7f3bf5 100%);
-webkit-background-clip: text;
font-size: 24px;
font-size: 16px;
-webkit-text-fill-color: transparent;
font-style: normal;
font-weight: 900;

View File

@ -395,7 +395,7 @@ class SendEmailSerializer(ApiMixin, serializers.Serializer):
# 获取邮件模板
language = get_language()
file = open(
os.path.join(PROJECT_DIR, "apps", "common", 'template', f'email_template{to_locale(language)}.html'), "r",
os.path.join(PROJECT_DIR, "apps", "common", 'template', f'email_template_{to_locale(language)}.html'), "r",
encoding='utf-8')
content = file.read()
file.close()