linhw 2024-05-29 18:01:45 +08:00
parent 677e523cae
commit a7f6500ddd
1 changed files with 3 additions and 2 deletions

View File

@ -95,11 +95,12 @@ public class AppLoginController {
//校验邮箱是否已注册
AppUser emailUser = appUserService.selectAppUserByEmail(registerForm.getEmail());
Assert.isNull(emailUser, "邮箱已注册");
redisService.setCacheMapValue(IdUtils.fastUUID(),registerForm.getEmail() , registerForm);
String uuid = IdUtils.fastUUID();
redisService.setCacheMapValue(uuid,registerForm.getEmail() , registerForm);
try {
String EM = "<html><body><h2>欢迎来到我们的服务!!</h2>"
+ "<p>请点击下面的网址确认您的注册:</p>"
+ "<a href=http://139.224.213.131:7008/app/activation/" + IdUtils.fastUUID() + "/" + registerForm.getEmail() + ">注册账号</a>"
+ "<a href=http://139.224.213.131:7008/app/activation/" + uuid + "/" + registerForm.getEmail() + ">注册账号</a>"
+ "</body></html>";
AliMailUtil.sendMail(EM,registerForm.getEmail());