ソースを参照

--update mobileReg();

zzy.zhiyuan.foxmail 8 年 前
コミット
6bd5e53f3b
共有1 個のファイルを変更した12 個の追加12 個の削除を含む
  1. 12 12
      src/main/java/com/ekexiu/portal/service/SysService.java

+ 12 - 12
src/main/java/com/ekexiu/portal/service/SysService.java

@ -758,13 +758,13 @@ public class SysService {
758 758
		StateCode<String, String> sc = (StateCode<String, String>) JfwAppContext.getCachedObject(state);
759 759
		if (sc == null || sc.getExpiredTime() < System.currentTimeMillis())
760 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 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 768
			User user = new User();
769 769
			user.setId(StringUtil.buildUUID());
770 770
			String passwd = StringUtil.md5(password);
@ -838,13 +838,13 @@ public class SysService {
838 838
		StateCode<String, String> sc = (StateCode<String, String>) JfwAppContext.getCachedObject(state);
839 839
		if (sc == null || sc.getExpiredTime() < System.currentTimeMillis())
840 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 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 848
			User user = new User();
849 849
			user.setId(StringUtil.buildUUID());
850 850
			String passwd = StringUtil.md5(password);