|
@@ -38,8 +38,6 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-import org.thymeleaf.TemplateEngine;
|
|
|
-import org.thymeleaf.context.Context;
|
|
|
|
|
|
|
|
|
@Service
|
|
@@ -62,8 +60,6 @@ public class LoginService {
|
|
|
@Value("${admin.register.validCode:2a22bac40f44af4d3b5fdc20ea706fc5}")
|
|
|
private String registerValidCode;
|
|
|
|
|
|
- @Autowired
|
|
|
- private TemplateEngine templateEngine;
|
|
|
|
|
|
public LoginVo login(LoginParam param) {
|
|
|
if (StringUtils.isEmpty(param.getPassword()) || StringUtils.isEmpty(param.getPhoneNum())){
|
|
@@ -244,10 +240,6 @@ public class LoginService {
|
|
|
}if("2".equals(country)){
|
|
|
SendMailAcceUtils.sendMailUsa(email, SendMailAcceUtils.EN_CODE_SUBJECT_USA, SendMailAcceUtils.EN_CODE_MSG_USA.replace("${code}", code), null);
|
|
|
}else if("33".equals(country)){
|
|
|
- Context context = new Context();
|
|
|
- Map<String,Object> params= new HashMap<>();
|
|
|
- params.put("code",code);
|
|
|
- context.setVariables(params);
|
|
|
SendMailAcceUtils.sendMail(email, SendMailAcceUtils.EN_CODE_SUBJECT, SendMailAcceUtils.EN_CODE_MSG.replace("${code}", code), null);
|
|
|
}else {
|
|
|
SendMailAcceUtils.sendMail(email, SendMailAcceUtils.CN_CODE_SUBJECT, SendMailAcceUtils.CN_CODE_MSG.replace("${code}", code), null);
|