fix: 1052009
--bug=1052009 --user=王孝刚 [国际化]修改密码的验证码通知邮件未国际化 https://www.tapd.cn/57709429/s/1651094
This commit is contained in:
parent
1db5696bc1
commit
5453aa7380
@ -54,10 +54,10 @@
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style="
|
style="
|
||||||
width: 230px;
|
width: 500px;
|
||||||
background: linear-gradient(180deg, #3370FF 0%, #7f3bf5 100%);
|
background: linear-gradient(180deg, #3370FF 0%, #7f3bf5 100%);
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
font-size: 24px;
|
font-size: 16px;
|
||||||
-webkit-text-fill-color: transparent;
|
-webkit-text-fill-color: transparent;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
|
|||||||
@ -395,7 +395,7 @@ class SendEmailSerializer(ApiMixin, serializers.Serializer):
|
|||||||
# 获取邮件模板
|
# 获取邮件模板
|
||||||
language = get_language()
|
language = get_language()
|
||||||
file = open(
|
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')
|
encoding='utf-8')
|
||||||
content = file.read()
|
content = file.read()
|
||||||
file.close()
|
file.close()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user