|
|
|
|
758
|
StateCode<String, String> sc = (StateCode<String, String>) JfwAppContext.getCachedObject(state);
|
758
|
StateCode<String, String> sc = (StateCode<String, String>) JfwAppContext.getCachedObject(state);
|
759
|
if (sc == null || sc.getExpiredTime() < System.currentTimeMillis())
|
759
|
if (sc == null || sc.getExpiredTime() < System.currentTimeMillis())
|
760
|
throw new JfwBaseException(-1, "验证超时");
|
760
|
throw new JfwBaseException(-1, "验证超时");
|
|
|
761
|
if (!sc.getKey().equals(mobilePhone)) {
|
|
|
762
|
throw new JfwBaseException(-2, "手机号与验证手机不匹配");
|
|
|
763
|
}
|
|
|
764
|
if (!sc.getValue().equals(validateCode)) {
|
|
|
765
|
throw new JfwBaseException(-3, "验证码错误");
|
|
|
766
|
}
|
761
|
try {
|
767
|
try {
|
762
|
if (!sc.getKey().equals(mobilePhone)) {
|
|
|
763
|
throw new JfwBaseException(-2, "手机号与验证手机不匹配");
|
|
|
764
|
}
|
|
|
765
|
if (!sc.getValue().equals(validateCode)) {
|
|
|
766
|
throw new JfwBaseException(-3, "验证码错误");
|
|
|
767
|
}
|
|
|
768
|
User user = new User();
|
768
|
User user = new User();
|
769
|
user.setId(StringUtil.buildUUID());
|
769
|
user.setId(StringUtil.buildUUID());
|
770
|
String passwd = StringUtil.md5(password);
|
770
|
String passwd = StringUtil.md5(password);
|
|
|
|
|
838
|
StateCode<String, String> sc = (StateCode<String, String>) JfwAppContext.getCachedObject(state);
|
838
|
StateCode<String, String> sc = (StateCode<String, String>) JfwAppContext.getCachedObject(state);
|
839
|
if (sc == null || sc.getExpiredTime() < System.currentTimeMillis())
|
839
|
if (sc == null || sc.getExpiredTime() < System.currentTimeMillis())
|
840
|
throw new JfwBaseException(-1, "验证超时");
|
840
|
throw new JfwBaseException(-1, "验证超时");
|
|
|
841
|
if (!sc.getKey().equals(mobilePhone)) {
|
|
|
842
|
throw new JfwBaseException(-2, "手机号与验证手机不匹配");
|
|
|
843
|
}
|
|
|
844
|
if (!sc.getValue().equals(validateCode)) {
|
|
|
845
|
throw new JfwBaseException(-3, "验证码错误");
|
|
|
846
|
}
|
841
|
try {
|
847
|
try {
|
842
|
if (!sc.getKey().equals(mobilePhone)) {
|
|
|
843
|
throw new JfwBaseException(-2, "手机号与验证手机不匹配");
|
|
|
844
|
}
|
|
|
845
|
if (!sc.getValue().equals(validateCode)) {
|
|
|
846
|
throw new JfwBaseException(-3, "验证码错误");
|
|
|
847
|
}
|
|
|
848
|
User user = new User();
|
848
|
User user = new User();
|
849
|
user.setId(StringUtil.buildUUID());
|
849
|
user.setId(StringUtil.buildUUID());
|
850
|
String passwd = StringUtil.md5(password);
|
850
|
String passwd = StringUtil.md5(password);
|