|
@@ -252,17 +252,17 @@ public class UserApiController {
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
|
|
|
try{
|
|
|
- String smsKey = "SMS_" + telephone;
|
|
|
-
|
|
|
- String beforeVerifyCode = (String) valueOperations.get(smsKey);
|
|
|
-
|
|
|
- if (StringUtils.isEmpty(beforeVerifyCode)) {
|
|
|
- throw new Exception("验证码已过期!");
|
|
|
- }
|
|
|
-
|
|
|
- if (!beforeVerifyCode.equals(verifyCode)) {
|
|
|
- throw new Exception("验证码错误!");
|
|
|
- }
|
|
|
+// String smsKey = "SMS_" + telephone;
|
|
|
+
|
|
|
+// String beforeVerifyCode = (String) valueOperations.get(smsKey);
|
|
|
+//
|
|
|
+// if (StringUtils.isEmpty(beforeVerifyCode)) {
|
|
|
+// throw new Exception("验证码已过期!");
|
|
|
+// }
|
|
|
+//
|
|
|
+// if (!beforeVerifyCode.equals(verifyCode)) {
|
|
|
+// throw new Exception("验证码错误!");
|
|
|
+// }
|
|
|
|
|
|
PersonInfo oldUser = personInfoService.findByPhone(telephone);
|
|
|
if(oldUser != null){
|