|
@@ -2,6 +2,7 @@ package com.fdkankan.ucenter.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
|
+import com.fdkankan.ucenter.common.constants.NacosProperty;
|
|
|
import com.fdkankan.ucenter.common.constants.ResultCode;
|
|
|
import com.fdkankan.ucenter.entity.*;
|
|
|
import com.fdkankan.ucenter.mapper.IMailTemplateMapper;
|
|
@@ -43,6 +44,11 @@ public class MailTemplateServiceImpl extends ServiceImpl<IMailTemplateMapper, Ma
|
|
|
|
|
|
@Override
|
|
|
public MailTemplate getTemplate(Integer type,String lang) {
|
|
|
+ if(NacosProperty.uploadType.equals("aws")){
|
|
|
+ lang = "en";
|
|
|
+ }else {
|
|
|
+ lang = "zh";
|
|
|
+ }
|
|
|
LambdaQueryWrapper<MailTemplate> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(MailTemplate::getType,type);
|
|
|
wrapper.eq(MailTemplate::getLang,lang);
|