|
|
@@ -251,8 +251,8 @@ public class AccountInfoManagerImpl extends AbstractCommManager implements Accou |
|
|
|
SourceType sourceType = SourceType.findByCode(dto.getLoginSource()); |
|
|
|
if (sourceType == null) throw new ManagerException("来源错误"); |
|
|
|
if (sourceType != SourceType.WEB) throw new ManagerException("来源错误"); |
|
|
|
String smsCode = redisManager.get(RedisKeyGenerator.getSmsCodeKey(dto.getNewMobile(), sourceType.name(), 3)); |
|
|
|
if (!dto.getCode().equals(smsCode)) throw new ManagerException("短信验证码已失效"); |
|
|
|
// String smsCode = redisManager.get(RedisKeyGenerator.getSmsCodeKey(dto.getNewMobile(), sourceType.name(), 3)); |
|
|
|
// if (!dto.getCode().equals(smsCode)) throw new ManagerException("短信验证码已失效"); |
|
|
|
//1、判断客户账户是否存在 |
|
|
|
AccountInfo accountInfo = accountInfoRepo.findByAccount(dto.getOldMobile()); |
|
|
|
if (accountInfo == null) throw new ManagerException("原手机号对应用户不存在"); |