|
|
|
@ -87,7 +87,7 @@ public class ManagerController { |
|
|
|
|
return new JSONResponse<>(Result.FAIL,"确认密码不能为空",null); |
|
|
|
|
}else if (!manager.getPassword().equals(manager.getConfirmPassword())) { |
|
|
|
|
return new JSONResponse<>(Result.FAIL, "两次密码输入不一致", null); |
|
|
|
|
}else if(StringUtils.isEmpty(manager.getMobie())){ |
|
|
|
|
} else if (StringUtils.isEmpty(manager.getMobile())) { |
|
|
|
|
return new JSONResponse<>(Result.FAIL, "手机号不能为空", null); |
|
|
|
|
} else if (StringUtils.isEmpty(manager.getEmail())) { |
|
|
|
|
return new JSONResponse<>(Result.FAIL, "邮箱不能为空", null); |
|
|
|
@ -98,7 +98,7 @@ public class ManagerController { |
|
|
|
|
Manager m = new Manager(); |
|
|
|
|
m.setManagerName(manager.getManagerName()); |
|
|
|
|
m.setPassword(DigestUtils.md5DigestAsHex(manager.getPassword().getBytes())); |
|
|
|
|
m.setMobie(manager.getMobie()); |
|
|
|
|
m.setMobile(manager.getMobile()); |
|
|
|
|
m.setEmail(manager.getEmail()); |
|
|
|
|
managerDao.save(m); |
|
|
|
|
return new JSONResponse<>(Result.OK,"注册成功",null); |
|
|
|
|