打包修复

master
jiangjiaqi 5 years ago
parent 4eb7a4d7c5
commit 9bf7d52671
  1. 4
      src/main/java/com/community/pocket/api/ManagerController.java
  2. 10
      src/main/java/com/community/pocket/domain/Manager.java
  3. 10
      src/main/java/com/community/pocket/domain/form/ManagerRegister.java

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

@ -10,7 +10,7 @@ public class Manager {
// 密码 // 密码
private String password; private String password;
// 手机号 // 手机号
private Long mobie; private Long mobile;
// 邮箱 // 邮箱
private String email; private String email;
@ -38,12 +38,12 @@ public class Manager {
this.password = password; this.password = password;
} }
public Long getMobie() { public Long getMobile() {
return mobie; return mobile;
} }
public void setMobie(Long mobie) { public void setMobile(Long mobile) {
this.mobie = mobie; this.mobile = mobile;
} }
public String getEmail() { public String getEmail() {

@ -8,7 +8,7 @@ public class ManagerRegister {
// 确认密码 // 确认密码
private String confirmPassword; private String confirmPassword;
// 手机号 // 手机号
private Long mobie; private Long mobile;
// 邮箱 // 邮箱
private String email; private String email;
@ -36,12 +36,12 @@ public class ManagerRegister {
this.confirmPassword = confirmPassword; this.confirmPassword = confirmPassword;
} }
public Long getMobie() { public Long getMobile() {
return mobie; return mobile;
} }
public void setMobie(Long mobie) { public void setMobile(Long mobile) {
this.mobie = mobie; this.mobile = mobile;
} }
public String getEmail() { public String getEmail() {

Loading…
Cancel
Save