Merge remote-tracking branch 'origin/develop' into develop

master
yuan 7 years ago
commit 20bdd9a5b2

@ -109,10 +109,10 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
@Override
public void verifyRegisterSMSCode(String codeKey, String phoneNumber) {
String rediskey = getRegisterClientRedisKey(phoneNumber);
// String codeValue = stringRedisTemplate.boundValueOps(rediskey).get();
// if (codeValue == null || !codeValue.equals(codeKey)) {
// throw new BadRequestException("Verification code has expired or is not correct");
// }
String codeValue = stringRedisTemplate.boundValueOps(rediskey).get();
if (codeValue == null || !codeValue.equals(codeKey)) {
throw new BadRequestException("Verification code has expired or is not correct");
}
stringRedisTemplate.delete(rediskey);
}

Loading…
Cancel
Save